Crig::Providers::Anthropic::CompletionModel
Inherits Crig::Completion::CompletionModel < Struct < Value < Object
Constructors
Instance methods
automatic_caching_ttl
Sourceclient
Sourcecompletion(request : Crig::Completion::Request::CompletionRequest)
Sourcecompletion_request(prompt : Crig::Completion::Message | String) : Crig::Completion::Request::CompletionRequestBuilder
Sourcecomposes_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.
default_max_tokens
Sourceinto_agent_builder
Sourcemodel
Sourceprompt_caching?
Sourcestream(request : Crig::Completion::Request::CompletionRequest)
ameba:disable Metrics/CyclomaticComplexity
with_automatic_caching
Sourcewith_automatic_caching_1h
Sourcewith_prompt_caching
Source