AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class StreamingChatEventHandler

    Event handler for streamed chat responses.

    Inheritance
    object
    AIDevKitEventHandler
    ChatEventHandler
    StreamingChatEventHandler
    Inherited Members
    ChatEventHandler.onMessageSent
    ChatEventHandler.onMessageBlocked
    AIDevKitEventHandler.onError
    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[]>
    In this article
    Back to top Generated by DocFX