<name>.agent.yaml is the agent definition for the Cognite CLI (cognite agents create, push, publish, and related commands). create and pull name the file after the project folder, for example, my-agent/my-agent.agent.yaml. The YAML shape matches agent resources in the Cognite Toolkit. The Cognite Toolkit treats the resource type as case-insensitive, so the same file works with cognite agents and cdf build / cdf deploy.
The CLI also resolves a lone
*.agent.yaml in the folder (any prefix, including PascalCase .Agent.yaml from the Cognite Toolkit). Several matching files with none named after the folder is an error.
Example
my-agent.agent.yaml
externalId inside the file is the Cognite Data Fusion (CDF) identity. It does not have to match the folder or filename.
Fields
Tools
Atlas AI tools evolve quickly. The Cognite Toolkit warns on unknown tool types atcdf build but still deploys tools the CDF API accepts. The CLI passes tool configuration through to the Agents API.
Common tool types (illustrative; see the Agent builder or agents reference in the Cognite Toolkit for the latest list):
Each tool entry needs at least:
instructions and a configuration object. Example knowledge-graph tool:
summarizeDocument, queryTimeSeriesDatapoints, and more), see the agents section in the Cognite Toolkit.
Skills
List skillexternalId values under skills. With the Cognite Toolkit, define skills as *.Skill.yaml resources under agents/ (requires the Cognite Toolkit agent-skills alpha flag). See Agent skills in the YAML reference library.
Cognite Toolkit compatibility
The same YAML works in the Cognite CLI and the Cognite Toolkit. Differences are location and how many agent files you can keep together.eval/eval.yaml is CLI-only. It is not a Cognite Toolkit agent resource.
To add the file to a module and deploy it, see Configure, build, and deploy modules and YAML reference library: Agents.
Related information
- Building Atlas AI agents with the Cognite CLI: step-by-step guide to scaffold, push, evaluate, and publish an Atlas AI agent.
- Agent evaluation cases:
eval/eval.yamlschema (CLI-only; not part of the Cognite Toolkit agent resources). - Command reference:
agentssubcommands.