struct

Crig::Providers::Anthropic::CompletionModel

Inherits Crig::Completion::CompletionModel < Struct < Value < Object

Constructors

make(client : Client, model : String) : self
Source
new(client : Client, model : String, default_max_tokens : Int64 | Nil = nil, prompt_caching : Bool = false, automatic_caching_ttl : CacheTtl | Nil = nil)
Source
with_model(client : Client, model : String) : self
Source

Instance methods

automatic_caching_ttl
Source
client
Source
composes_native_output_with_tools?

Whether the model supports native structured output alongside tool calls. OpenAI Chat Completions defers response_format while tools are present and no tool result exists yet, then applies it once tools have run. Override to true for providers where native output composes with tools.

Source
default_max_tokens
Source
into_agent_builder
Source
model
Source
prompt_caching?
Source

ameba:disable Metrics/CyclomaticComplexity

Source
with_automatic_caching
Source
with_automatic_caching_1h
Source
with_prompt_caching
Source