Agent orchestration#

Agent orchestration Agent orchestration

The reference agent service and runtime, in reference/orchestration/. They are the baseline to start from: a working path from an agent definition to a release, a deployment and a run, with example agents. Change them to fit your needs (Write an agent), or replace them with any orchestration that serves the same API (Custom orchestration).

Component

Code

What it does

Agent service

reference/orchestration/agent-service/

Agent definitions, releases, deployments, instances, conversations, runs, tasks and event wakes, as its own API role. The toolkit reaches it only through the orchestration port. Runs as agent-service-api and agent-controller; state in the agents schema

NeMo agent releases

reference/orchestration/nemo/

The producer workspace for native NeMo agents: agent.yaml definitions, packaging and release commands, the stdio MCP bridge agents use to reach the toolkit, and the runtime image. Runs on NeMo Platform

Agent templates

reference/orchestration/templates/

Reusable agent definitions that are not tied to a domain, such as a retrieval assistant and a report generator, with their skills. Each is one agent (agent.yaml), not a workflow across agents

Maritime agents

reference/orchestration/maritime/

Vessel observers for optical and radar imagery, a fusion analyst and a collection observer. MCP tools agent_task_*

Model connections

.../agent-service/connections.py

Connections from agents to inference gateways and model providers: /v1/inference-connections, /v1/inference-gateways

Routes: /v1/agent-imports, /v1/agent-definitions, /v1/agents, /v1/deployments, /v1/agent-instances, /v1/conversations, /v1/runs.

From definition to run#

Agents, deployments and runs Agents, deployments and runs

The API records intent; the controller makes it happen on NeMo Platform.

Step

What happens

Route

1-2

Import an agent root; it is checked and stored as ready. Commit the import and the definition gets a release

POST /v1/agent-imports, .../{import_id}/commit

3-4

Promote the release and create a deployment of it

POST /v1/agents/{agent_id}/releases/{release_id}/promote, .../deployments

5-6

agent-controller claims the pending deployment and projects the release into NeMo Platform; the deployment becomes healthy

7

Launch an instance with its scope: project, collections, tools and lifetime

POST /v1/agent-instances

8-10

Open a session and start the first run. A message or task starts more work; events are stored

POST /v1/conversations/{conversation_id}/runs, POST /v1/agent-instances/{instance_id}/tasks

11

The agent reads and writes through the toolkit with its scoped credential, for example catalog_search, gkb_publish

MCP

12

Follow or cancel the run

GET /v1/runs/{run_id}/events, POST /v1/runs/{run_id}/cancel

13-14

Wake: read catalog and knowledge changes after the stored position, journal and route each event, store the new position, queue a continuation

GET /v1/events/catalog/{collection}, GET /v1/events/gkb/{project}

15

Stop the deployment; the controller closes sessions and stops it

POST /v1/deployments/{deployment_id}/stop

Replacing it#

A custom orchestration serves the agent service API, and its agents reach the toolkit exactly as any client does: MCP tools and skill resources, or REST /v1 with scoped credentials. The toolkit depends on no orchestration code. See Custom orchestration.