Skip to content
providerkit
GitHub

AgentPart

Defined in: react/src/protocol.ts:146

One row per specialist run.

optional agentId?: string;

Defined in: react/src/protocol.ts:151

The registered agent definition, for host-owned label maps. Not execution authority.


id: string;

Defined in: react/src/protocol.ts:149

The specialist run, also referenced by its child tool/text parts.


optional kind?: "delegation" | "handoff" | "workflow" | "remote";

Defined in: react/src/protocol.ts:157


label: string;

Defined in: react/src/protocol.ts:155


optional parentId?: string;

Defined in: react/src/protocol.ts:154

The id of the agent part for the specialist that started this one. Absent when the root run started it.


optional remoteState?:
| "completed"
| "failed"
| "unknown"
| "submitted"
| "working"
| "input_required"
| "auth_required"
| "canceled"
| "rejected";

Defined in: react/src/protocol.ts:159

Last confirmed peer state. A local stop does not cancel remote work.


state: AgentState;

Defined in: react/src/protocol.ts:156


optional summary?: string;

Defined in: react/src/protocol.ts:169


optional toolId?: string;

Defined in: react/src/protocol.ts:172


type: "agent";

Defined in: react/src/protocol.ts:147


optional workflowId?: string;

Defined in: react/src/protocol.ts:171

Present for a workflow specialist instead of a registered agentId.