providerplaneai
    Preparing search index...

    Interface ChatCapability<TChatInput, TChatOutput>

    Provider-agnostic chat (non-streaming) capability interface.

    Providers that implement this interface can handle chat requests.

    interface ChatCapability<TChatInput = unknown, TChatOutput = unknown> {
        chat(
            request: AIRequest<TChatInput>,
            ctx: MultiModalExecutionContext,
            signal?: AbortSignal,
        ): Promise<AIResponse<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