HTTP protocol case.

interface Http<Model extends ILlmSchema.Model> {
    arguments: Record<string, unknown>;
    created_at: string & Format<"date-time">;
    id: string;
    operation: AgenticaOperation.Http;
    protocol: "http";
    toJSON: () => IAgenticaHistoryJson.IExecute;
    type: "execute";
    value: IHttpResponse;
}

Type Parameters

  • Model extends ILlmSchema.Model

Hierarchy

Properties

arguments: Record<string, unknown>

Arguments of the function calling.

created_at: string & Format<"date-time">

Creation timestamp of the history.

id: string

Primary key of the history.

Target operation that has been called.

protocol: "http"

Protocol of the operation.

type: "execute"

Discriminator type.

value: IHttpResponse

Return value.

If the protocol is "class", the return value of the class function.

Otherwise "http", the return value is an HTTP response.