struct

Arcana::AI::Chat::StreamEvent

Inherits Struct < Value < Object

Events yielded during streaming chat completion.

Constructors

done(response : Response) : self
Source
error(message : String) : self
Source
new(type : Type, text : String | Nil = nil, tool_call : ToolCall | Nil = nil, response : Response | Nil = nil, error : String | Nil = nil)
Source
text_delta(text : String) : self
Source
tool_use(tool_call : ToolCall) : self
Source

Instance methods

error
Source
error=(error : String | Nil)
Source
response
Source
response=(response : Response | Nil)
Source
text
Source
text=(text : String | Nil)
Source
tool_call
Source
tool_call=(tool_call : ToolCall | Nil)
Source
type
Source
type=(type : Type)
Source

Nested types