Agent Schema
The agent schema defines the set of attributes every agent carries. There is one built-in schema, shared by all agents: it belongs to the single agent type, default, and Choreo Identity & Access Management does not accept other agent types, so there is no per-agent-class schema. Each agent holds its own values for the attributes the schema defines. Attributes describe and classify an agent, for example which model it runs or what function it serves, and any attribute can be added to the agent's tokens for a downstream service to read.
The agent type has the handle default and the display name Default. The handle is the identifier that agents and applications use to refer to the agent type. It cannot be changed. The display name is free text and can be changed at any time.
Why an agent has a schema
- Consistent metadata. Every agent is described by the same fields, so agents are classified and governed the same way across the organization.
- Token claims. Selected attributes are added to the agent's access token, so a resource can act on them, for example route by
modelProvideror restrict byfunction. - Secrets. An attribute marked as a credential is stored hashed and never returned, so an agent can carry a sensitive value without exposing it.
Attributes an agent can have
Each attribute in the schema has:
- a name and a display name;
- a type: string, email, mobile, number, boolean, or enum;
- required: whether every agent must set a value;
- unique: whether the value must be unique across agents;
- credential: whether the value is stored hashed and hidden (string or number only);
- for a string, an optional regex pattern; for email or mobile, a regex pattern prefilled by the Console; for an enum, the list of allowed values.
Email and mobile attributes hold string values and support the required and unique flags. They cannot be credentials or define enum values. The Console requires a regex pattern for these types.
The Console prefills ^[^\s@]+@[^\s@]+\.[^\s@]+$ for email attributes and ^\+[1-9]\d{1,14}$ for mobile attributes. Replace the prefilled pattern to use a custom one. Agents do not support primary email or primary mobile mappings.
The default schema
The built-in schema defines three optional attributes:
| Attribute | Type | Values |
|---|---|---|
modelProvider | enum | openai, anthropic, gemini, mistral, custom |
model | string | free text, for example the model name |
function | enum | task-automation, rag-retrieval, code-gen, data-analysis, orchestrator, sub-agent, assistant, custom |
None are required, so an agent can set any, all, or none of them. Set the values per agent on the Attributes tab. See Attribute values.
Change the schema
Click Schema on the Agents list. Add or edit attributes, set each one's type, display name, required, unique, and credential flags, a regex pattern (string, email, or mobile) or allowed values (enum), then save from the unsaved-changes bar.
Because the schema is shared by all agents, a change to it applies to every agent at once.
Was this page helpful?