providerplaneai
    Preparing search index...

    Interface ChatStreamCapability<TChatInput, TChatOutput>

    Provider-agnostic streaming chat capability interface.

    Allows streaming partial responses for chat.

    interface ChatStreamCapability<TChatInput = unknown, TChatOutput = unknown> {
        chatStream(
            request: AIRequest<TChatInput>,
            ctx: MultiModalExecutionContext,
            signal?: AbortSignal,
        ): AsyncGenerator<AIResponseChunk<TChatOutput>>;
    }

    Type Parameters

    • TChatInput = unknown

      Input type for chat messages

    • TChatOutput = unknown

      Output type for chat responses

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    Methods