@sqlrooms/ai / AgentToolCall
Type Alias: AgentToolCall
AgentToolCall =
object
Represents the state of a single tool call made by an agent. When the tool is itself an agent, agentToolCalls contains the nested sub-agent's tool calls so the UI can render them recursively.
Properties
toolCallId
toolCallId:
string
toolName
toolName:
string
input?
optionalinput:unknown
output?
optionaloutput:unknown
errorText?
optionalerrorText:string
state
state:
"pending"|"success"|"error"|"approval-requested"
agentToolCalls?
optionalagentToolCalls:AgentToolCall[]
approvalId?
optionalapprovalId:string
startedAt?
optionalstartedAt:number
completedAt?
optionalcompletedAt:number
