interface AgenticaResponseEvent {
    body: ChatCompletionCreateParamsStreaming;
    join: () => Promise<ChatCompletion>;
    options?: RequestOptions;
    source: AgenticaEventSource;
    stream: AsyncGenerator<ChatCompletionChunk, undefined, undefined>;
    type: "response";
}

Hierarchy

  • AgenticaEventBase<"response">
    • AgenticaResponseEvent

Properties

body: ChatCompletionCreateParamsStreaming

Request body.

join: () => Promise<ChatCompletion>

Wait the completion.

options?: RequestOptions

Options for the request.

The source agent of the response.

stream: AsyncGenerator<ChatCompletionChunk, undefined, undefined>

The text content stream.

type: "response"

Discriminator type.