AgentSubagent
Unpublished development API. This package is under development and is not available as a published release.
A child agent the root agent started, with the transcript it produced. Its
messages and tool calls are held here and are not repeated in the root
snapshot's messages and toolCalls.
import type { AgentSubagent } from '@threadplane/core';Declaration
export interface AgentSubagent {
readonly description?: string;
readonly error?: string;
readonly id: string;
readonly messages: readonly Message[];
readonly name?: string;
readonly parentId?: string;
readonly status: AgentSubagentStatus;
readonly toolCallId?: string;
readonly toolCalls: readonly ToolCall[];
}Members
description
The task the child was given, in the root agent's words.
readonly description?: string;error
Display text for the failure when status is 'error' and the backend gave one.
readonly error?: string;id
Stable for the life of the session.
readonly id: string;messages
readonly messages: readonly Message[];name
readonly name?: string;parentId
The id of the child that started this one; absent for a child of the root agent.
readonly parentId?: string;status
readonly status: AgentSubagentStatus;toolCallId
The root tool call that started this child, when the backend relates the two.
readonly toolCallId?: string;toolCalls
The child's own tool calls, referenced by Message.toolCallIds in messages.
readonly toolCalls: readonly ToolCall[];