The complete agents.json schema specification
agents.json
schema, providing context and explanations for each element. This reference can be used by implementers and consumers (including LLMs and developers) to better understand how to configure and use agents.json
in a workflow.
Full JSON Schema
agents.json
. The file contains:
agents.json
schema is an object with the following required properties:
agentsJson
info
sources
flows
overrides
and other properties as needed.
agents.json
schema being used. Must follow Semantic Versioning (SemVer).title
(string)version
(string)description
(string)agents.json
file.agents.json
specificationagents.json
file accomplishesid
(string)path
(string)sourceId
(string)operationId
(string)fieldPath
(string)value
(string | object | array | boolean | integer | number)id
(string)title
(string)description
(string)actions
(array)fields
(object)id
(string)sourceId
(string)operationId
(string)origin
(object)target
(object)actionId
(string or null)fieldPath
(string; JSON path expression)actionId
(string)fieldPath
(string; JSON path expression)content
(object): A map of MIME type to an object with “schema” and optional “example”required
(boolean): Whether this request body is mandatorysuccess
(object)agents.json
implementation for a weather service that chains together location and weather APIs:
links
section shows how data from the first API call (latitude/longitude) flows into the second API callfields.parameters
section defines the expected input formatfields.responses
section specifies the structure of the successful responseagents.json
file adhering to this schema enables a detailed definition of your orchestration logic. It supports:
agentsJson
info
sources
overrides
flows
), which contain: