Meshes
Meshes tie together multiple Agents into a coherent, orchestrated system that can solve a larger task than any single agent. A Mesh is a graph of agent versions exchanging typed messages via Intents (entry points), Call Links (sub-task invocation) and Transfer Links (delegation or routing).
Designing an effective Mesh centers on three concerns:
- Decomposition: Partition the overall problem into narrowly scoped agents with focused instructions and input and output schemas.
- Data Flow: Define message schemas so each step receives only the information it needs to keep prompts small and grounded.
- Orchestration: Choose between Call Links (return control) and Transfer Links (delegate control) to model workflow structure, parallelism and specialization.
Creating a mesh
New mesh offers two options:
- Blank mesh: Start from an empty graph and add its agents yourself.
- Create automatically: Describe what you want your mesh to do. The creator builds agents, intents and links. It may ask questions as it works. Answer them on the job page.
On the new mesh page, Partite builds the whole graph in memory and creates it at once. If you leave the page, you lose the graph.
Quick Reference
Settings
| Field | Purpose | Guidance |
|---|---|---|
| Name | Mesh identifier | Keep concise; used in traces and UI elements. |
| Description | Purpose & scope | Human readable description of the mesh’s role and responsibilities. |
| Model set | Routing rules reference | Associate set enabling complexity/tag-based profile selection. |
| Memory store | Memory for the whole mesh | Optional. At most one store. Not versioned; every version of the mesh reads and writes the same memory. Agents need an Interaction Profile to use it. See Memory Stores. |
| Tags | Metadata | Name and value pairs. Boundaries read them as |
Intent
| Field | Purpose | Guidance |
|---|---|---|
| Intent Name | External entry point identifier | Stable API handle; use verbs/nouns meaningful to clients. |
| Target Agent | Processing agent version | The agent that handles requests sent to this Intent. The agent’s version is chosen once on its card in the mesh and is shared by every intent and link to that agent. |
| Responses | Structured response types | Provide distinct schemas for different output modes; avoid generic catch-all types. See Message Schemas for more information. |
Call
| Field | Purpose | Guidance |
|---|---|---|
| Target Agent | Sub-task executor | The agent which will execute the sub-task. |
| Tool Name | Invocation cue to source agent | The tool name which will be exposed to the source agent to initiate the call to the target agent. Use a verb phrase similar to a method name describing the action the target agent will take. Avoid ambiguity - keep it short & action-oriented. |
| Call instructions | Guidance for when to call | Exposed to the source agent as instructions for calling the target agent. Include preconditions & input expectations. |
| Responses | Potential structured results | Provide named schemas the target can choose from when returning to the source agent. These act like tools surfaced to the target agent. See Message Schemas for more information. |
Transfer
| Field | Purpose | Guidance |
|---|---|---|
| Target Agent | Successor controller | An agent which will replace the current agent and be responsible for continuing execution. Delegate when role permanently shifts. |
| Tool Name | Invocation cue to source agent | The tool name which will be exposed to the source agent to initiate the call to the target agent. Use a verb phrase similar to a method name describing the action the target agent will take. Avoid ambiguity - keep it short & action-oriented. |
| Transfer instructions | Criteria for delegation | Exposed to the source agent as instructions for calling the target agent. Include preconditions & input expectations. |
Route
| Field | Purpose | Guidance |
|---|---|---|
| Name | Identifies the route | For example “Canary” or “New retriever trial”. Callers use the route ID that the card shows after you save, as |
| Splits traffic between | Versions and weights | One row per version, and the draft can be one of them. Drag a share, or type weights: they’re relative, so 3 and 1 send three quarters of the traffic to one version and a quarter to the other. A version at 0 stays in the route, ready, and takes no traffic. At least one version must get traffic. Each new conversation picks a version at random by weight and keeps it. |
Rubrics
| Field | Purpose | Guidance |
|---|---|---|
| Rubric | What to score | A rubric from Observability. Each rubric can be added once per mesh. |
| Judged by | Model set for judges | The Model Set whose profiles run the judge evaluators. Always required. |
| Evaluates N % of conversations | Sample rate | The share of conversations to score, 0 to 100. Start low on high volume meshes. |
| Enabled | On or off | Evaluates nothing until it’s turned on again. Results appear under Evaluation results for the mesh. |
The draft editor
Each intent, call, transfer or agent you add is a draft card on the graph. Add intent creates an intent card. To add a call link or a transfer link, open Add link on the source agent’s card and choose Call agent or Transfer to agent. The side panel shows a step checklist for the selected card. Each step is marked Needed, Recommended or optional. A step is locked until you choose the agent.
- Intent steps: Name, Responses.
- Call link steps: Tool name, Call instructions, Responses.
- Transfer link steps: Tool name, Transfer instructions.
- Agent steps: Pick an existing agent, or name a new one. Then fill Description, Instructions, Input, Model, User interactions, Tools, Skills and Memory inline.
A response has a Name, Response instructions (“When the agent should answer this way”) and a schema for what it sends back.
Agent nodes show a version picker. When you add a precreated agent, the draft uses its latest version. Use the version picker to choose another. A new agent version reaches the draft only when you choose Save and update drafts when saving the agent, or pick it in the picker.
Versioning & Labels
Unlike Agents (which auto version on every edit), a Mesh always has a single mutable Draft. You edit the Draft; when ready you apply a Label to snapshot its current state. Each label creates an immutable Mesh Version accessible by its label name.
Typical flow:
- Edit the Draft (add intent, adjust links, swap agent versions).
- Smoke test via the Conversation API targeting the Draft (no label) or a test label.
- Apply or update a label such as
stagingorprodto create an immutable snapshot for use in a particular environment.
The versions page lets you name or rename versions and delete non-draft versions. It also lets you open Converse with the draft or with a version. Routes and webhook destinations run a specific version.
Contained Entity Types
Meshes contain three entity categories. Understanding their roles is essential for proper decomposition.
Intent (entry point)
An Intent defines how external callers start a new Request within a Conversation. Each Intent selects one Agent Version to process its input and defines one or more output message types the agent can emit as a response.
Design Guidance
- Prefer multiple specific output types over one vague catch all to reinforce structured thinking.
- When an Intent can produce different “modes” of output (for example summary versus detailed analysis), use distinct output message types so downstream code can rely on shape instead of brittle free text parsing.
- Use grounding on fields where factual accuracy is critical (IDs, totals, compliance statements) to enforce provenance.
- Use different Intents for different types of request.
Call Link (sub-task invocation)
A Call Link connects a source agent version to a target agent version. The source can invoke the target as a tool and receive one of its defined output message types as a result. Control returns to the source after completion.
Design Guidance
- Use Call Links for synchronous, bounded work where the source continues orchestration after receiving structured results.
- Keep target input schemas minimal. Only provide data the target needs; the source can pre digest earlier context.
Transfer Link (delegation or routing)
A Transfer Link passes control from a source agent version to a target agent version. Unlike a call, control does not return. The target continues executing and can see the response tools originally available to the source (becoming its new active agent).
Design Guidance
- Use for router patterns (classification then delegate), skill specialization (general triage then expert), or long running workflows where specialization is clearer once context is gathered.
- Keep routing logic lightweight. The source agent’s purpose may just be deciding the best target.
- Avoid circular delegation chains. Design an acyclic progression of responsibility.
- If user interaction is required later, ensure the target agent has necessary user interaction flags enabled.
Selecting Call vs Transfer
| Scenario | Prefer | Rationale |
|---|---|---|
| Source needs structured sub result and continues orchestration | Call Link | Maintains local control and allows combining multiple sub results. |
| Source role is classification or routing | Transfer Link | Eliminates unnecessary return and simplifies trace. |
| Sub task may require user questions mid process while main agent should not resume | Transfer Link | Delegated agent can own interaction lifecycle. |
| Multiple parallel specialized analyses aggregated later | Call Link | Source can coordinate fan out and fan in. |
| Escalation to higher complexity model or expertise | Transfer Link | Representation shifts permanently to expert context. |
Model Routing via Model Sets
Associate a Model Set with the Mesh. Its rules evaluate each agent invocation complexity and tags to select an optimal Model Profile. Patterns:
- Cost optimization: Simple classification agents route to cheaper fast models. Complex synthesis agents route to higher capability models.
- Best of breed: Code generation agents tagged
coderoute to code tuned profiles. Summarizers taggedsummaryroute to models strong at compression. - Experimentation: Tag an agent
experimentaland add a rule that sends that tag to a new profile. The rules read only agent tags, so every request to that agent version uses the new profile. To try it on part of the traffic, make a new mesh version and split traffic with a route.
Routes
A route splits the traffic of a mesh between its versions. Callers start conversations on the route instead of on a version, and the route picks a version for each new conversation. Use a route to try a new version on part of the traffic, or to move traffic from one version to another without changing the callers.
Adding a route
On the mesh settings page, press Add route under Routes. Name the route. Under Splits traffic between, pick a version in the first row. Press Add version to add a row for each other version. The draft is one of the choices. Routes save with the rest of the mesh settings. After you save, the card shows the route ID.
To delete a route, remove its card and save. You can’t delete a route that a schedule uses.
Weights
In the console, weights are relative. With weights 3 and 1, one version gets three quarters of the new conversations and the other gets a quarter. Drag a share, or type a weight. With three or more versions, the lock button holds a share in place while you drag another.
A version with weight 0 stays in the route and gets no traffic. This keeps a version ready, for example the old version during a rollout. At least one version must get traffic, and each version can be in a route once.
The route stores the weights as whole percentages that add up to 100. The console turns relative weights into percentages when you save, so a share can be rounded. A version with any weight gets at least 1%. Terraform and the GraphQL API take the percentages, and they must add up to 100.
A share for the draft goes to the current draft. The draft changes as you edit it, so don’t send traffic that people rely on to the draft.
How a conversation gets its version
When a conversation starts on a route, the route picks one of its versions at random, in proportion to the weights. The conversation keeps that version. Every later request in the conversation runs on it, even after you change the weights. A change to a route only affects new conversations.
What starts a new conversation depends on how the caller connects:
- Conversation API.
POST /conversations. Requests sent to the conversation later stay on its version. - AG-UI. The first run of a thread. Later runs of the thread stay on its version.
- MCP. Each tool call, unless the client names an existing conversation. See Meshes as MCP Servers.
The versions in a route can have different intents. A request for an intent that the picked version doesn’t have fails. Keep the same intents in every version of a route.
Calling a route
| Caller | What to send |
|---|---|
| Conversation API | route_id instead of mesh in POST /conversations. See Conversation API. |
| AG-UI | POST /agui/routes/{route_id}, or POST /agui/routes/{route_id}/intents/{intent_name}. See Client Tasks and AG-UI. |
| MCP | /mcp/routes/{route_id}. See Meshes as MCP Servers. |
| Schedule | The Route field of the schedule. See Schedules. |
Through an access point, put /access-points/{access_point_id} before the path. The Connect button lists the routes of the mesh by name and gives the address of each.
Trying a new version
- Point the callers at a route that sends all traffic to the current version.
- Make a new version with the change. See Versioning & Labels.
- Add the new version to the route with a small share, for example weights 19 and 1 for 5%.
- Watch how the new version does. A trace shows the mesh version in its header. In the evaluation results of the mesh, turn on Compare versions to see each version’s scores. See Evaluations.
- Raise the share of the new version in steps. If it does worse, set its weight to 0. New conversations then go to the old version. Conversations that started on the new version stay on it.
- When the new version gets all the traffic, keep the old version at 0 so you can switch back, or remove it.
Route checks
Boundary rules for Conversation create and Request create can read the route variable, with its id and name. It is null when the caller names a version or the draft instead. A conversation keeps the route it started on, so Request create rules see the same route on later requests. Rules for the other actions can’t read route.
To make callers use a route, deny conversations without one. This rule leaves out people signed in to the console, so Converse still works:
{
"name": "use-a-route",
"action": "CONVERSATION_CREATE",
"when": "caller.kind != \"user\" && route == null",
"effect": "DENY",
"message": "Call ${mesh.name} through a route."
}Conversations that a schedule or a webhook starts skip the Conversation create and Request create checks, so no rule reads their route. This is by design: the configuration decides how they start, not a caller. A schedule that names a route still picks a version by the route’s split, but its conversation doesn’t record the route.
Terraform
Manage routes with the partiteai_route resource. segments is a set of shares, each with a weight (a percentage) and an optional mesh_version_id. The weights must add up to 100. A share without mesh_version_id goes to the draft. To name a version, use the mesh_version_id of a partiteai_mesh_version_label resource.
resource "partiteai_route" "canary" {
mesh_id = partiteai_mesh.support.id
name = "Canary"
segments = [
{ mesh_version_id = partiteai_mesh_version_label.v1.mesh_version_id, weight = 95 },
{ mesh_version_id = partiteai_mesh_version_label.v2.mesh_version_id, weight = 5 },
]
}Evaluation monitors
The Rubrics section of mesh settings holds the evaluation monitors for the mesh. Each monitor scores a share of completed requests with a rubric. See Evaluations.
Connect
The Connect button on mesh settings shows the address to call the mesh from outside the console. Choose how callers come in: with an API key or through an access point. Choose a route, a version label, a version or the draft. Then choose MCP, AG-UI or Conversation API. To use the mesh from an MCP client, see Meshes as MCP Servers.
Converse
The Converse button on mesh settings and on versions opens a chat window for the draft or for a version.
- Choose Partite API or Another server. Another server is a self-hosted Partite Mesh, such as one that runs locally. Enter its Address.
- Pick an intent.
- Fill the form that Partite generates from the intent schema.
- Set conversation tags before the first request. Set request tags for each request.
- Answer client tasks inline.
- Open the trace.
Security & Capability Partitioning
Follow the lethal trifecta mitigation: minimize any single agent having all three: (1) access to sensitive data, (2) untrusted input processing, (3) ability to change external state. Use Mesh links to ensure:
- Data gathering agents fetch and cite facts but cannot perform outbound actions.
- Action agents receive curated structured inputs (not raw user free text) reducing prompt injection risk.
- Validation agents apply grounding checks before action agents are invoked.
Call links help enforce review cycles (gather then validate then act). Transfer links enforce capability separation (triage then specialized executor) with a clear responsibility handoff.
Operational Tips
| Concern | Tip |
|---|---|
| Prompt bloat | Split overly large agents. Move ancillary operations into dedicated call link agents. |
| Hallucinations | Increase grounding coverage. Require citations for decisive fields. Return large tool results as resources so the agent cites fields rather than guesses. |
| Latency | Parallelize independent call links. Right size models. Minimize unnecessary transfer chains. |
| Debugging | Use traces to observe tool calls and grounding failures. Refine descriptions in output message types to reduce misuse. |
| Model drift | Encapsulate model choices in Model Set profiles. Re label the Mesh after modifying routing. Keep agent instructions stable to isolate model changes. |
When to Refactor a Mesh
Refactor when you see any of these symptoms:
- A single agent accumulating broad, multi paragraph instructions covering many tasks.
- Repeated large blobs passed through multiple call links untouched.
- Frequent hallucination or missing citation errors on specific fields. Consider introducing a dedicated validation agent.
- Model routing rules becoming complex. Consider splitting into multiple meshes per major workflow.
Summary
Meshes provide the structural backbone for scalable, observable, and trustworthy agentic workflows. By decomposing tasks, enforcing message structure and grounding, and labeling versions for controlled rollout, you can evolve AI systems with the same rigor as the rest of your stack.