struct

Crig::Providers::Anthropic::CompletionResponse

Inherits Crig::Telemetry::ProviderResponseExt < Struct < Value < Object

Telemetry trait implementation for Anthropic CompletionResponse

Constructors

from_json_value(value : JSON::Any) : self
Source
new(content : Array(Content), id : String, model : String, role : String, usage : Usage, stop_reason : String | Nil = nil, stop_sequence : String | Nil = nil)
Source

Instance methods

content
Source
model
Source
output_messages
Source
response_id
Source
response_model_name
Source
role
Source
stop_reason
Source
stop_sequence
Source
text_response
Source
to_crig_response
Source
token_usage(*args, **options)
Source
token_usage(*args, **options, &)
Source
usage
Source