Interface AgentResponseCommon<Data>

interface AgentResponseCommon<Data> {
    data?: Data;
    intermediateSteps?: IntermediateStep[];
    message?: string;
    toolCalls?: ToolCall[];
}

Type Parameters

Hierarchy (view full)

Properties

data?: Data

Additional data that can be sent back to the client.

intermediateSteps?: IntermediateStep[]

Intermediate steps that the agent has taken. This can be used for debugging or logging purposes, or to provide additional context to the client.

message?: string

Message to be sent back to the client.

toolCalls?: ToolCall[]

Tool calls that needs to be executed on the client-side.