struct

Crig::Providers::OpenAI::AssistantContent

Inherits JSON::Serializable < Struct < Value < Object

Constructors

from_json_value(value : JSON::Any) : self
Source
new(kind : Kind, text : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
output_text(text : String) : self
Source
refusal(text : String) : self
Source

Instance methods

kind
Source
text
Source
to_completion_content
Source
to_json_value
Source

Nested types