Class StreamingChatEventHandler
Event handler for streamed chat responses.
Inherited Members
Namespace: Glitch9.AIDevKit.Components
Assembly: .dll
Syntax
public class StreamingChatEventHandler : ChatEventHandler
Fields
onStreamDone
Invoked when a streamed response is completed and finalized.
Declaration
public UnityEvent<ChatCompletion> onStreamDone
Field Value
Type | Description |
---|---|
UnityEvent<ChatCompletion> |
onStreamStart
Invoked at the beginning of a streamed chat response.
Declaration
public UnityEvent onStreamStart
Field Value
Type | Description |
---|---|
UnityEvent |
onStreamText
Invoked when a new text chunk (token) is received during streaming.
Declaration
public UnityEvent<string> onStreamText
Field Value
Type | Description |
---|---|
UnityEvent<string> |
onStreamToolCalls
Invoked when tool calls are detected in a streamed response.
Declaration
public UnityEvent<ToolCall[]> onStreamToolCalls
Field Value
Type | Description |
---|---|
UnityEvent<ToolCall[]> |