OpenAI::ChatMessage
Inherits JSON::Serializable < Reference < Object
Generic chat message for JSON deserialization Handles messages with just 'role' and 'content' fields
Constructors
new(pull : JSON::PullParser)
Sourcenew(role : String, content : String | Nil = nil, name : String | Nil = nil, tool_calls : Array(JSON::Any) | Nil = nil, tool_call_id : String | Nil = nil, refusal : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourcename
Sourcerefusal
Sourcerole
Sourcetool_call_id
Sourcetool_calls
Source