struct

Crig::Providers::Anthropic::Client

Inherits Crig::Client::CompletionClient < Struct < Value < Object

Constructors

from_env
Source
from_val(input : String) : self
Source
new(api_key : AnthropicKey, base_url : String = ANTHROPIC_API_BASE_URL, anthropic_version : String = ANTHROPIC_VERSION_LATEST, anthropic_betas : Array(String) = [] of String, http_client : HTTP::Client | WrappedTransport | Nil = nil)
Source
new(api_key : String, base_url : String = ANTHROPIC_API_BASE_URL, anthropic_version : String = ANTHROPIC_VERSION_LATEST, anthropic_betas : Array(String) = [] of String, http_client : HTTP::Client | WrappedTransport | Nil = nil) : self
Source

Class methods

builder
Source

Instance methods

anthropic_betas
Source
anthropic_version
Source
api_key
Source
base_url
Source
build_uri(path : String) : String
Source
default_headers
Source
http_client
Source
post_json(path : String, body : String, headers : Hash(String, String) = {} of String => String) : TransportResponse
Source

Nested types