Skip to main content
An agent is one isolated memory index and file store with a role and an objective. You create it once, and it persists until you delete it.
Each agent’s memory is its own; everyone who talks to one agent shares what it learns. To keep two customers’ facts separate, give them two agents. See A1. Each agent’s memory is its own.

Create an agent

Send POST/v2/agents with agent_config.role and agent_config.objective.

Success response (202)

Poll GET/v2/agents/ every second until status is ready (usually a few seconds). GET/v2/agents/ returns the agent summary without embedding threads; list threads separately with GET/v2/agents//threads.

Errors

Agent lifecycle states

Any operation that needs a live agent returns 409 agent_not_ready while status is initializing or failed.

Learning mode

By default, an agent learns whenever you call observe, observe-and-respond, or observe-and-recall. To answer from fixed documents without learning from user conversations, call respond or recall instead of observe-and-respond or observe-and-recall. See Answering. Learning is decided per call; there is no agent-wide switch.

Public and private agents

Every agent lives in one project and is public or private: When the request names no visibility, an Org admin, a Project admin, or a service account gets a public agent, and anyone else gets a private one. A Contributor or Agent admin who asks for public gets 403 forbidden. An agent created with a key lives in that key’s project. Reaching an agent is not the same as teaching it. Everyone who reaches a public agent can chat with it, but only Org admins, Project admins, and the agent’s Agent admins can make it learn, see its memories, or change its settings. See Roles and permissions.

List, read, update, and delete agents