Multi-agent Systems
Use tool for conversational work with tools, task for work defined by
an input schema and prompt template, and manager to delegate work to stored
Tool and Task agents. Each agent is created separately through POST /v1/agents.
A manager references existing agent versions; there is no separate topology creation
or invocation endpoint.
Choose an agent type
Public agentType | Required configuration | Standalone invocation | Manager child |
|---|---|---|---|
tool | llmModelId | Chat, chat streaming, async runs | Yes |
task | llmModelId, inputSchema, matching systemPrompt template | Structured task input, task streaming, async runs | Yes |
manager | llmModelId; optional experts | Chat, chat streaming, async runs | No |
The public Task contract is the same across LlamaIndex and LangChain runtimes. See the Task Agent guide for structured input and prompt templates.
Availability and access
Use a model available in the target environment; see Supported LLMs. Requests require authentication and permission to access each referenced agent. Where passports are enabled, admission checks apply to both the Manager and its delegated workers. The configured passport mode determines which versions require issued, unexpired passports; a refused invocation returns HTTP 403. See Environment settings for the admission policy.
Common creation fields
These fields apply to all three types:
| Field | Required | Purpose |
|---|---|---|
name | Yes | Unique stored agent name. |
description | Yes | Describes the agent; maximum 200 characters. |
agentType | Yes | One of the types listed above. |
config | Yes | The agent's configuration object. |
config.llmModelId | Yes | Model used by this agent. Each expert can use its own model. |
displayName | No | Display label; defaults to name. |
versionLabel, notes | No | Human-readable version metadata. |
validateOnly | No | Set to true to validate the creation request without saving it. Reference and external configuration checks still require the relevant services. |
tools defaults to an empty list. systemPrompt is optional for Tool and Manager
agents, but supply it to explain their responsibilities and delegation policy. It is
required as a template for Task agents. Use camelCase fields in public requests.
Tool agents
Required parts and creation
Supply the common required fields and config.llmModelId. Add tools for the actions
the agent should perform; an empty tool list is allowed.
{
"name": "order-subtotal-calculator",
"description": "Calculates purchase-order subtotals",
"agentType": "tool",
"config": {
"llmModelId": "anthropic.claude-haiku-5-5",
"systemPrompt": "Always use multiply to calculate quantity times unit price. Report the exact subtotal.",
"tools": [
{
"toolType": "function",
"name": "multiply",
"description": "Multiplies quantity by unit price",
"funcName": "multiply"
}
]
}
}
Optional capabilities
| Configuration | What it does |
|---|---|
systemPrompt | Defines the agent's persona, tool-use instructions, and scope. |
tools | Adds function calls, RAG retrieval, MCP integrations, Analytics, or Task Agents as tools. See Tool configuration. |
| Structured output | Returns JSON with the fields and types defined in outputSchema. Add one tool with toolType: "structured_output" to tools. See Structured output. |
skills | List of skill UUIDs. Loads reusable instructions and resources into the agent's sandbox. See Skills. |
guardrails | Configures supported model/input/output policies. See Guardrails. |
maxIterations | Bounds the agent's loop; in the Expert runtime, bounds model calls. Uses the server default when omitted. |
inferenceConfig | Sets generation parameters, retries, and timeouts; see Inference settings. |
Standalone Tool skills and sandbox capabilities depend on availability in your environment. Contact your platform administrator if these capabilities are unavailable.
Tool agents cannot declare experts. To delegate to compiled experts, use a Deep
Manager. To call a schema-based Task Agent as a tool, use toolType: "task_agent".
Task agents
Required parts and creation
In addition to the common required fields, supply:
inputSchema: a JSON schema withtype: "object"describing task inputs.systemPrompt: a task template containing{{variable}}placeholders. Every schema property must appear in the template, and every placeholder must be a schema property. At least one placeholder is required.
These requirements apply to structured Task invocation and Manager delegation. Define descriptions and required properties so input binding has a clear contract.
{
"name": "purchase-approval-policy",
"description": "Determines the approver for a confirmed purchase subtotal",
"agentType": "task",
"config": {
"llmModelId": "anthropic.claude-haiku-5-5",
"systemPrompt": "Apply this policy to the confirmed subtotal {{subtotal}}: below $1,000 requires no approval; $1,000 through $4,999.99 requires department-manager approval; $5,000 or more requires finance-director approval. State the matching threshold. Do not recalculate the subtotal.",
"inputSchema": {
"type": "object",
"properties": {
"subtotal": { "type": "number", "description": "Confirmed subtotal in USD" }
},
"required": ["subtotal"],
"additionalProperties": false
}
}
}
Optional capabilities
| Configuration | What it does |
|---|---|
tools | Adds tools the task may use, including function, RAG, MCP, Analytics, and Task Agent tools. Defaults to []. |
| Structured output | Returns JSON with the fields and types defined in outputSchema. Add one tool with toolType: "structured_output" to tools; see the example below. |
skills | Adds reusable skill instructions and sandbox resources by UUID. |
guardrails | Applies supported guardrail policies to task execution. |
maxIterations | Caps model calls in the Task runtime; defaults to the server limit. |
inferenceConfig | Controls generation, retry, and timeout settings. |
Task agents cannot declare experts.
For example, add this entry to either worker's config.tools to request a JSON
approval result instead of prose:
{
"toolType": "structured_output",
"name": "structured_output",
"description": "Returns the confirmed subtotal and required approver",
"outputSchema": {
"type": "object",
"properties": {
"subtotal": { "type": "number" },
"approver": { "type": "string" }
},
"required": ["subtotal", "approver"],
"additionalProperties": false
}
}
Configure this result schema on the approval worker in the purchase example. A
calculator-only worker should instead use a schema describing its calculation result.
Native structured output also depends on model support; Bedrock's native path rejects
minimum/maximum schema constraints. See Structured output.
Input binding across invocation styles
| Invocation | How inputs reach the template |
|---|---|
/invoke-task and /invoke-task-stream | The caller supplies inputs. Orchestration validates them and renders the template before sending work to runtime. |
| Manager delegation | The same binding runs inside the child runnable on the delegated assignment. The manager should provide every required value. |
Missing, ambiguous, or invalid delegated inputs produce a clarification instead of executing
the task. Prefer /invoke-task for deterministic caller-supplied fields. Inputs already
bound by orchestration are not extracted a second time.
Manager agents
Required parts and creation
For delegation, create the workers first. Then supply the common required fields and an optional
config.experts list. Each reference needs a unique invocation name and an agentId
UUID. versionId defaults to "latest"; use a version UUID to pin a specific version.
The invocation name can differ from the stored agent name. The manager uses it to
select an expert. Referenced agents must be tool or task and visible to
the caller. Nested managers are not supported in experts. Omit experts or use [] to run
a Manager independently with its own prompt and tools.
{
"name": "purchase-quote-manager",
"description": "Coordinates pricing and approval experts",
"agentType": "manager",
"config": {
"llmModelId": "anthropic.claude-haiku-5-5",
"systemPrompt": "Delegate calculation to pricing_calculator. Give its confirmed subtotal to approval_policy. Combine both answers.",
"enableGeneralPurposeSubagent": false,
"experts": [
{ "name": "pricing_calculator", "agentId": "<tool-agent-id>", "versionId": "latest" },
{ "name": "approval_policy", "agentId": "<expert-task-agent-id>", "versionId": "latest" }
]
}
}
Replace the ID placeholders with returned UUIDs before submitting. A child is created in exactly the same way as a standalone agent; there is no special subagent creation request. At invocation, orchestration resolves each reference and runtime builds the manager with the children's runnables.
Optional capabilities
| Configuration | What it does |
|---|---|
systemPrompt | Explains when to delegate, which expert to choose, and how to combine answers. The manager has planning, delegation, and context management from Deep Agents. |
enableGeneralPurposeSubagent | Defaults to true: includes the built-in general-purpose child. Set to false to omit it. An explicitly configured expert named general-purpose is retained either way. A Manager can run without explicitly configured experts. |
tools | Gives the manager its own callable tools, separate from each child's tools. |
guardrails | Configures policies for the manager. Configure each expert's own guardrails as needed. |
inferenceConfig | Sets manager model parameters and timeout. Each child retains its own configuration. |
Attach skill UUIDs through the manager's skills field, including when experts is
omitted or empty. Skills automatically enable the manager's Analytics tools and load
artifacts into its coordinated sandbox. Manager and configured experts each resolve
their own skills: neither inherits the other's skill list. To share a skill, attach
the same UUID explicitly to each agent. The optional built-in general-purpose
subagent inherits the manager's callable tools, but does not receive the manager's
platform skill middleware or its own skill inventory. A manager can include skill
instructions in a delegated assignment. Configured stored experts retain their own
resolved skill inventories.
The manager does not expose a final structured-output schema. A child's
structured JSON does not force the manager's final response to follow that schema.
maxIterations is not mapped into the manager runtime; use inferenceConfig.timeout
to bound its execution. There is no agentConnections field in the current contract.
When a child has Analytics capability, the manager's delegation tool can hand off
file_analysis references to that selected child. Configuring skills automatically
adds this capability, so a skills-only child can receive file handoffs without an
explicit analytics tool. You can also add an analytics tool directly. See
Analytics for file input and sandbox configuration.
Inference settings
config.inferenceConfig is optional for all three types. Omitted values use server
defaults. Supported fields are temperature, maxTokens, maxRetries, and timeout
(seconds). Choose values compatible with the selected model. timeout limits individual
model requests. Expert Tool and Manager additionally apply it to complete graph
execution, including stream consumption. Task currently has no equivalent
graph-wide timeout wrapper. Child agents retain their own limits; a manager's graph
deadline also bounds the delegation it is awaiting.
See Agent Settings for separate agent-level settings such as
tracing and evaluation; these are not extra fields in the creation config.
Invoke independently or through a manager
The synchronous endpoint prefix is
/v1/agents/{agent_id}/versions/{version_id}. version_id accepts latest or a
version UUID. All requests below use POST and authenticated JSON bodies.
| Agent | Endpoint suffixes | Body |
|---|---|---|
| Tool | /invoke, /invoke-stream | messages |
| Task | /invoke-task, /invoke-task-stream | inputs, plus optional context messages |
| Manager | /invoke, /invoke-stream | messages; the manager delegates internally |
Chat body for the Tool or Manager:
{
"messages": [{ "role": "user", "content": "Prepare a purchase approval summary for 24 units at $125 each." }]
}
Structured task body for the Task's /invoke-task:
{ "inputs": { "subtotal": 3000 } }
Streaming uses the same request body as its synchronous counterpart. Responses are line-delimited JSON platform chunks; a manager stream exposes the root output rather than all internal child events. See Processing Streamed Data.
Async runs
Use POST /v1/agents/{agent_id}/runs for background work, then poll the run or consume
its SSE stream. The version is selected with the optional versionId body field.
Tool and Manager runs take chat messages; Task runs require inputs, with
optional context messages, matching the structured /invoke-task contract.
{
"invokeRequest": { "inputs": { "subtotal": 3000 } }
}
See Async Runs for chat examples, status, cancellation, and SSE
resumption. Synchronous /invoke and /invoke-task have a seven-minute server
deadline; use runs when work may outlast the caller's connection.
Task Agents as tools: another composition pattern
A Tool agent can also call a schema-based Task Agent by configuring a task_agent
tool. This pattern exposes the task's input properties as tool arguments rather than
delegating a free-text assignment through a manager's experts list.
{
"toolType": "task_agent",
"agentId": "<task-agent-id>",
"agentVersion": "latest"
}
Add this entry to the caller's config.tools. Orchestration populates its name,
description, and task configuration. Note the different version field:
agentVersion for a tool, versionId for an expert reference. See
Task Agents as Tools for the Task Agent
walkthrough. This does not make arbitrary Tool or Manager agents valid task tools:
the referenced configuration must satisfy the Task input-schema/template contract.
Composition limits
Each expert owns its prompt, model, tools, and optional capabilities. Tools share a
runtime namespace across the topology: identical registrations can be shared, but
conflicting tool names fail construction. Give distinct Task Agent tools distinct
names. References are checked on creation/update and again on invocation; latest
can resolve to a different version on a later call.