Response event of LLM provider API.

interface IResponse {
    body: ChatCompletionCreateParamsNonStreaming;
    options?: RequestOptions;
    source: NestiaAgentSource;
    type: "response";
    value: ChatCompletion;
}

Hierarchy

  • IBase<"response">
    • IResponse

Properties

body: ChatCompletionCreateParamsNonStreaming

Request body.

options?: RequestOptions

Options for the request.

The source agent of the response.

type: "response"

Discriminator type.

value: ChatCompletion

Return value from the LLM provider API.