struct

Crig::Completion::AssistantContent

Inherits Struct < Value < Object

Constructors

image_base64(data : String, media_type : ImageMediaType | Nil = nil, detail : ImageDetail | Nil = nil) : self
Source
new(kind : Kind, text : Text | Nil = nil, tool_call : ToolCall | Nil = nil, reasoning : Reasoning | Nil = nil, image : Image | Nil = nil)
Source
reasoning(reasoning : String) : self
Source
text(text : String) : self
Source
tool_call(id : String, name : String, arguments : JSON::Any) : self
Source
tool_call_with_call_id(id : String, call_id : String, name : String, arguments : JSON::Any) : self
Source

Instance methods

image
Source
kind
Source
reasoning
Source
text
Source
tool_call
Source

Nested types