struct
AI::OpenAI::OpenAIChatChunkDelta
- AI::OpenAI::OpenAIChatChunkDelta
- Struct
- Value
- Object
Overview
Delta in streaming chunk.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/chat/openai_chat_api.crConstructors
- .new(pull : JSON::PullParser)
- .new(role : String | Nil = nil, content : String | Nil = nil, tool_calls : Array(OpenAIChatChunkToolCall) | Nil = nil, annotations : Array(OpenAIChatAnnotation) | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #annotations : Array(OpenAIChatAnnotation) | Nil
- #content : String | Nil
- #role : String | Nil
- #tool_calls : Array(OpenAIChatChunkToolCall) | Nil
Constructor Detail
def self.new(role : String | Nil = nil, content : String | Nil = nil, tool_calls : Array(OpenAIChatChunkToolCall) | Nil = nil, annotations : Array(OpenAIChatAnnotation) | Nil = nil)
#