Skip to content

@sqlrooms/ai-core / ChatTurnActivityItem

Type Alias: ChatTurnActivityItem ​

ChatTurnActivityItem = { kind: "reasoning"; index: number; text: string; } | { kind: "tool"; index: number; part: ToolPartWithId; state: AgentToolCall["state"]; isAgent: boolean; agentToolCalls?: AgentToolCall[]; isHoisted: boolean; }

Union Members ​

Type Literal ​

{ kind: "reasoning"; index: number; text: string; }


Type Literal ​

{ kind: "tool"; index: number; part: ToolPartWithId; state: AgentToolCall["state"]; isAgent: boolean; agentToolCalls?: AgentToolCall[]; isHoisted: boolean; }

NameTypeDescription
kind"tool"-
indexnumber-
partToolPartWithId-
stateAgentToolCall["state"]-
isAgentboolean-
agentToolCalls?AgentToolCall[]Live or persisted child calls when this tool represents an agent.
isHoistedbooleanTrue when this top-level tool is collected into the hoisted region.