A-Graph by Agens Research Labs

The reference

Every key of the graph file.

Every key of the graph file. This page is generated from the code by a-graph --print-docs: do not edit it by hand. The same keys are in the JSON Schema spec/graph.schema.json, printed by a-graph --print-schema.

How the file works as a whole is explained in the graph file. In the paths, [] is an item of a list and <name> a key you choose. A secret is written { env: <VARIABLE> }: the name of the environment variable that holds its value.

The file

KeyRequiredValueDescription
graph_specyes1.0The version of the format of this file.
passportyesmap (below)The identity of the graph, in the ADL 0.3.0 format (https://www.adl-spec.org/), with the hosts it may reach.
observabilityyesmap (below)The log: structured records of what the program does, for machines.
tracenomap (below)The timeline of the run, sent to a collector when the run ends. Without this block there is no trace.
verboseyesmap (below)The live display of the run, for a person, on the standard error.
modelsyeslist of: map (below)The language models the nodes call.
embeddingsnolist of: map (below)The models that turn a text into a vector, for the vector databases and the memories.
utilitiesnolist of: map (below)Programs and services that the program, never the model, calls to change the data of a node.
resourcesnomap (below)What the nodes use: prompts, tools, MCP servers, media, skills.
externalnomap (below)The sources outside the program: vector databases, search engines, memories.
blackboardsnolist of: map (below)Markdown texts shared by the nodes.
graphyesmap (below)The nodes and the edges that connect them.

passport

KeyRequiredValueDescription
adlyesmap (below)The passport, in the ADL format (https://www.adl-spec.org/). The key names are those of ADL.

passport.adl

KeyRequiredValueDescription
adl_specyestextThe version of ADL the passport is written in: "0.3.0".
nameyestextThe name of the agent. The trace uses it as the name of the service.
descriptionyestextWhat the agent does.
versionyestextThe version of the agent, as a semantic version of three numbers (for example "1.0.0").
data_classificationyesmap (below)How sensitive the data of the graph are. It decides whether the contents (prompts, answers, results) are written in the log, the trace and the display.
lifecyclenomap (below)The stage of life of the agent. The program does not act on it.
permissionsnomap (below)What the graph is allowed to do. Without it, no host is allowed.

passport.adl.data_classification

KeyRequiredValueDescription
sensitivityyespublic, internal, confidential or restrictedThe level of sensitivity of the data. The contents are written only with public and no categories.
categoriesnolist of: pii, phi, financial, credentials, intellectual_property or regulatoryThe kinds of regulated data the graph handles. Any category hides the contents.

passport.adl.lifecycle

KeyRequiredValueDescription
statusyesdraft, active, deprecated or retiredThe stage the agent is in.
sunset_datenotextWhen the agent is retired, in RFC 3339 with a time zone (for example 2027-01-01T00:00:00Z).

passport.adl.permissions

KeyRequiredValueDescription
networknomap (below)The network the graph may reach. Without it, no host is allowed.

passport.adl.permissions.network

KeyRequiredValueDescription
allowed_hostsyeslist of: textThe hosts the graph may reach: host names, not URLs (api.anthropic.com, not https://api.anthropic.com/v1), compared without regard to case. An entry host allows every port of the host; an entry host:port (localhost:11434, [::1]:8080) allows that port only. The port of a URL is the one written in it, or 80 for http and 443 for https; the host of a provider is reached on 443. An entry is read as the host of a URL is read: 127.1 counts as 127.0.0.1, [0:0:0:0:0:0:0:1] as [::1]. An entry that is a URL or carries a path is refused. Every destination of the file is checked against this list before anything runs.

observability

KeyRequiredValueDescription
levelyesdebug, info, warn or errorThe lowest level written: info writes the run, the nodes and the groups, debug also the calls, warn and error only the problems.
outputnostdout or stderr, or map (below)Where the log goes: stderr (the default), with the errors, so that the standard output holds only the result; stdout, mixed with the result; a file; or an HTTP endpoint. A log that cannot be written never stops the run.

observability.output

The form with file:

KeyRequiredValueDescription
fileyestextThe file the log is added to, created if it does not exist.

The form with url and headers:

KeyRequiredValueDescription
urlyestextThe HTTP endpoint the log is sent to, as POSTs of application/x-ndjson with at most 100 events each.
headersnomap of names to: secretThe headers of the POSTs, each read from an environment variable.

trace

KeyRequiredValueDescription
endpointyestextThe OpenTelemetry collector, as the exact URL of the POST (for example http://host:4318/v1/traces). At the end of the run, also when it fails, the whole timeline is sent in one POST, in OTLP over HTTP with JSON. A POST that fails is tried again up to 3 times; what cannot be delivered is dropped, with a notice on the standard error.
headersnomap of names to: secretThe headers of the POST, each read from an environment variable.
capture_contentnotrue or falseWhether trace attributes include prompts, answers, reasoning and error details. The default is false. Enabling this never overrides passport redaction; logs and the live display retain their own behavior.
max_content_bytesnowhole numberThe most UTF-8 bytes of each trace content attribute, at least 1; the default is 4096. Truncation preserves character boundaries and adds a_graph.content_truncated=true.

verbose

KeyRequiredValueDescription
levelyesoff, steps or detailWhat is shown: off nothing; steps the run, the nodes and the groups as they start and end, and the errors and warnings; detail also the calls, the readings and the contents, as the passport allows.

models[]

The key provider chooses the other keys, described in a section for each value.

KeyRequiredValueDescription
provideryesanthropic, openai, gemini, mistral, bedrock, vertex_ai, azure_foundry, ollama or customThe service the model is reached through. It decides the other keys.
idyesthe id of this modelThe id of the model, cited by the nodes.
modelyestextThe name of the model at its provider; on azure_foundry, the name of the deployment created in the Foundry portal.
inputyeslist of: text, image, audio or videoWhat the model reads. The program does not check the nodes against this list: what a node sends is checked against what the provider accepts.
outputyeslist of: text, image, audio or videoWhat the model produces. On bedrock, and with publisher anthropic, anything but text is an error (output_not_text). Otherwise the program does not check the nodes against this list: what a node asks is checked against what the provider can produce.

models[] with provider: anthropic

The Anthropic Messages API (api.anthropic.com). A node that uses it must set max_tokens.

KeyRequiredValueDescription
api_keyyessecretThe key of the API, read from an environment variable when the file is checked.
workspace_idnotextThe Anthropic workspace, sent as the header anthropic-workspace-id, for a key that is not bound to a workspace. It is an id, not a secret.
hostnotextThe server the calls go to instead of https://api.anthropic.com, a gateway for example, with the paths of the API under it (<host>/v1/messages). The batches go there too. Its host must be in allowed_hosts.

models[] with provider: openai

The OpenAI Responses API (api.openai.com).

KeyRequiredValueDescription
api_keyyessecretThe key of the API, read from an environment variable when the file is checked.
hostnotextThe server the calls go to instead of https://api.openai.com/v1, a gateway for example, with the paths of the Responses API under it (<host>/responses). The batches go there too. Its host must be in allowed_hosts.

models[] with provider: gemini

The Gemini API with an API key, not Vertex AI (generativelanguage.googleapis.com). It has no batch, and reasoning cannot be switched off.

KeyRequiredValueDescription
api_keyyessecretThe key of the API, read from an environment variable when the file is checked.
hostnotextThe server the calls go to instead of https://generativelanguage.googleapis.com, a gateway for example, with the paths of the API under it (<host>/v1beta/interactions). Its host must be in allowed_hosts.

models[] with provider: mistral

The Mistral API (api.mistral.ai).

KeyRequiredValueDescription
api_keyyessecretThe key of the API, read from an environment variable when the file is checked.
hostnotextThe server the calls go to instead of https://api.mistral.ai, a gateway for example, with the paths of the API under it (<host>/v1/chat/completions). The batches go there too. Its host must be in allowed_hosts.

models[] with provider: bedrock

Amazon Bedrock, through the Converse API (bedrock-runtime.<region>.amazonaws.com). It produces text only.

KeyRequiredValueDescription
regionyestextThe AWS region the model runs in, for example eu-west-1.
credentialsyesambient, or map (below)ambient: the default chain of the AWS SDK, resolved at the first call; the traffic it needs is not checked against allowed_hosts. Or the keys, each read from an environment variable when the file is checked.
batchnomap (below)Needed only by a batch group. The job is created on the Bedrock control API (bedrock.<region>.amazonaws.com), which must be in allowed_hosts. A batch cannot have an output schema.

models[].credentials with provider: bedrock

KeyRequiredValueDescription
access_keyyessecretThe AWS access key id.
secret_keyyessecretThe AWS secret access key.
session_tokennosecretThe session token, only for temporary credentials.

models[].batch with provider: bedrock

KeyRequiredValueDescription
input_s3_uriyestextThe S3 folder the requests are written to, as s3://<bucket>/<prefix>. Its bucket must be in allowed_hosts.
output_s3_uriyestextThe S3 folder the answers are written to, as s3://<bucket>/<prefix>. Its bucket must be in allowed_hosts.
role_arnyestextThe IAM role the batch job runs with.

models[] with provider: vertex_ai

Google Cloud Vertex AI. With publisher anthropic it works as anthropic and produces text only; with google as gemini. Neither has a batch yet.

KeyRequiredValueDescription
publisheryesanthropic or googleWhose model it is: it decides the format of the requests and what the model can do.
projectyestextThe Google Cloud project.
locationyestextWhere the model runs: global (aiplatform.googleapis.com), us or eu (aiplatform.<location>.rep.googleapis.com), or a region (<location>-aiplatform.googleapis.com).
credentialsyesambientThe Google Application Default Credentials, resolved at the first call; the traffic they need is not checked against allowed_hosts.
batchnomap (below)Accepted only with publisher google (batch_not_allowed), whose batch is not available yet.

models[].batch with provider: vertex_ai

KeyRequiredValueDescription
input_uriyestextWhere the requests of the batch are read from.
output_uri_prefixyestextWhere the answers of the batch are written.

models[] with provider: azure_foundry

Microsoft Foundry. With publisher anthropic it works as anthropic, produces text only and has no batch; with openai as openai.

KeyRequiredValueDescription
publisheryesanthropic or openaiWhose model it is: it decides the format of the requests and what the model can do.
resourceyestextThe name of the Foundry resource: the host is <resource>.services.ai.azure.com for anthropic, <resource>.openai.azure.com for openai.
credentialsyesambient, or map (below)ambient: in this order, the managed identity of an Azure resource, the Azure CLI and the Azure Developer CLI, resolved at the first call; the traffic they need is not checked against allowed_hosts. Or an api_key.
batchnomap (below)Accepted only with publisher openai (batch_not_allowed).

models[].credentials with provider: azure_foundry

KeyRequiredValueDescription
api_keyyessecretThe key of the resource, read from an environment variable when the file is checked.

models[].batch with provider: azure_foundry

KeyRequiredValueDescription
deploymentyestextThe Global-Batch deployment the batch is sent to.

models[] with provider: ollama

An Ollama server.

KeyRequiredValueDescription
hostyestextThe URL of the server, for example http://localhost:11434. Its host must be in allowed_hosts.

models[] with provider: custom

A model server of your own, called with POST <host>/api/chat in the format of the Ollama API.

KeyRequiredValueDescription
hostyestextThe URL of the server, for example http://localhost:11434. Its host must be in allowed_hosts.

embeddings[]

The key provider chooses the other keys, described in a section for each value.

KeyRequiredValueDescription
provideryesollamaThe service the model is reached through. It decides the other keys.
idyesthe id of this embeddingThe id of the embedding model, cited by the vector databases and the memories.
modelyestextThe name of the model at its provider.

embeddings[] with provider: ollama

An Ollama server, called with POST <host>/api/embed.

KeyRequiredValueDescription
hostyestextThe URL of the server, for example http://localhost:11434. Its host must be in allowed_hosts.

utilities[]

KeyRequiredValueDescription
idyesthe id of this utilityThe id of the utility, cited by the nodes where they want their data changed.
transportyesstdio or httpstdio: the program command is started for each call. http: a service already running, which the program does not start or stop.
commandnotextThe program to start, with transport: stdio only (where it is mandatory).
argsnolist of: textThe arguments of command, with transport: stdio only.
urlnotextThe URL the calls are POSTed to, with transport: http only (where it is mandatory). Its host must be in allowed_hosts.
headersnomap of names to: secretThe headers of the POSTs, with transport: http only, each read from an environment variable when the file is checked.
timeoutyeswhole numberThe seconds a call may take, at least 1. After that the program is stopped or the request abandoned, and the run fails.

resources

KeyRequiredValueDescription
promptsnolist of: map (below)The texts the nodes send to their models, with their placeholders.
toolsnolist of: map (below)Programs and services of yours that the model may call while a node runs. The model decides whether to call them; the program makes the call.
mcp_serversnolist of: map (below)Servers of the Model Context Protocol, connected when the run starts. Only their tools are used, never their resources or prompts. The arguments of a call are checked against the input schema the server gives for the tool, as for tools.
medianolist of: map (below)Everything that is not the text of a message: documents, images, audio, read or produced by the nodes.
skillsnolist of: map (below)Folders in the Agent Skills format (https://agentskills.io/specification): instructions for a task, with their files and scripts, that the model reads when it needs them.

resources.prompts[]

KeyRequiredValueDescription
idyesthe id of this promptThe id of the prompt, cited by the nodes.
contentnomap (below)The texts of the prompt, written in the file. A prompt has exactly one of content and source.
sourcenomap (below)Where the prompt is read from: exactly one of path, a .yml file with the same content: { system, user } (not Markdown, which could not be split into the two texts), read when the file is checked, and url, which answers the same text and is read when the run starts. The text of a url may have no YAML alias, no tag and at most 100000 YAML events.

resources.prompts[].content

KeyRequiredValueDescription
systemyestextThe system text, with its placeholders.
useryestextThe user text, with its placeholders.

resources.prompts[].source

KeyRequiredValueDescription
pathnotextA file, relative to the folder the command is run from.
urlnotextA URL, http or https, downloaded when the run starts, before the first node, if a node uses it. All the urls of a run together may weigh 64 MiB and take 60 seconds.
headersnomap of names to: secretThe headers of the request to url, with url only, each read from an environment variable when the file is checked.
base64notextThe content itself, in base64, checked when the graph loads. Only for a media.
mime_typenotextThe type of the content, such as application/pdf, given to the utilities the media goes through. Only for a media, with url or base64; with url, without it the extension of the path of the url gives the type.

resources.tools[]

KeyRequiredValueDescription
idyesthe id of this toolThe id of the tool: the name the model calls it by, and the id the nodes cite.
descriptionyestextWhat the tool does, told to the model.
transportyesstdio or httpstdio: the program command is started for each call, gets the arguments on its standard input and writes the result on its standard output. http: the arguments are POSTed to url and the result is the body of the answer.
commandnotextThe program to start, with transport: stdio only (where it is mandatory).
argsnolist of: textThe arguments of command, with transport: stdio only.
urlnotextThe URL the calls are POSTed to, with transport: http only (where it is mandatory). Its host must be in allowed_hosts.
headersnomap of names to: secretThe headers of the POSTs, with transport: http only, each read from an environment variable when the file is checked.
max_iteryeswhole numberThe most calls of this tool in one run of a node, at least 1, failures included. The count starts again for each node and each appearance of the node in the edges; one more call fails the run (tool_limit).
timeoutyeswhole numberThe seconds one call may take, at least 1. After that the program is killed or the request abandoned, and the model is told, as for any other failure.
parametersyesany valueThe JSON Schema of the arguments, an object, given to the provider as it is written; it must be a valid JSON Schema (bad_value). Before a call the arguments the model chose are checked against it: if they do not match, the tool is not called and the model is told why, as for any other failure, and the call counts in max_iter.

resources.mcp_servers[]

KeyRequiredValueDescription
idyesthe id of this MCP serverThe id of the server, cited by the nodes.
transportyesstdio or httpstdio: the program command is started when the run starts. http: the server at url, reached with Streamable HTTP.
commandnotextThe program to start, with transport: stdio only (where it is mandatory).
argsnolist of: textThe arguments of command, with transport: stdio only.
envnomap of names to: secretThe environment variables of the program, with transport: stdio only, each read from an environment variable when the server is started.
urlnotextThe URL of the server, with transport: http only (where it is mandatory). Its host must be in allowed_hosts.
headersnomap of names to: secretThe headers of the requests, with transport: http only, each read from an environment variable when the server is connected.
max_iteryeswhole numberThe most calls to the tools of the server, any of them, in one run of a node, at least 1. One more call fails the run (tool_limit).
timeoutyeswhole numberThe seconds one call may take, at least 1. After that the model is told that the call failed.

resources.media[]

KeyRequiredValueDescription
idyesthe id of this mediaThe id of the media, cited by the nodes that read or produce it.
typeyesmd or file, or map (below)What the media is: md a text (a file of another format, such as a PDF, is declared md and read through a utility that changes it into text); file a file of any format made by a utility, delivered in base64; or an image, an audio or a video with its format.
sourcenomap (below)Where a media that is read comes from: exactly one of path, url and base64. A media has exactly one of source and generate, except one of type file, which has neither.
generatenomap (below)How a model makes the media. Every value is given to the provider as it is written; a value it does not accept is an error when the file is checked (not_supported). A media is one image or one audio, written by one node only (media_two_writers).
providernomap (below)Settings of one family of providers only (exactly_one): the family of the model of the node that writes the media.

resources.media[].type

A map with exactly one of these keys.

KeyValueDescription
imgtextThe format of the image: png, jpeg, gif, webp...
audiotextThe format of the audio: wav, mp3...
videotextThe format of the video: mp4...

resources.media[].source

KeyRequiredValueDescription
pathnotextA file, relative to the folder the command is run from.
urlnotextA URL, http or https, downloaded when the run starts, before the first node, if a node uses it. All the urls of a run together may weigh 64 MiB and take 60 seconds.
headersnomap of names to: secretThe headers of the request to url, with url only, each read from an environment variable when the file is checked.
base64notextThe content itself, in base64, checked when the graph loads. Only for a media.
mime_typenotextThe type of the content, such as application/pdf, given to the utilities the media goes through. Only for a media, with url or base64; with url, without it the extension of the path of the url gives the type.

resources.media[].generate

KeyRequiredValueDescription
voicenotextThe voice of an audio. Mandatory for an audio on OpenAI.
language_codenotextThe language of an audio. No provider accepts it at present.
sizenomap (below)The size of an image. The provider may accept only some pairs.
qualitynotextThe quality of an image. The values depend on the model.
backgroundnotrue or falsetrue a transparent background, false an opaque one; without it the provider decides. A transparent background needs an image of type png or webp (media_type_unsupported).

resources.media[].generate.size

KeyRequiredValueDescription
widthyeswhole numberThe width, in pixels.
heightyeswhole numberThe height, in pixels.

resources.media[].provider

KeyRequiredValueDescription
openainomap (below)For a model of OpenAI, also through azure_foundry with publisher openai.
gemininomap (below)For a model of Gemini, also through vertex_ai with publisher google.

resources.media[].provider.openai

KeyRequiredValueDescription
moderationnolow or autoHow strict the moderation of the image is.
output_compressionnowhole numberFrom 0 to 100, for an image of type jpeg or webp.
stylenovivid or naturalThe style of the image. No model accepts it at present: the GPT image models take the style from the prompt. Not together with the other two (media_provider_conflict).

resources.media[].provider.gemini

KeyRequiredValueDescription
image_sizeno512, 1K, 2K or 4KThe size of the image.
aspect_rationotextThe ratio of width to height, for example 16:9.

resources.skills[]

KeyRequiredValueDescription
idyesthe id of this skillThe id of the skill, cited by the nodes.
pathyestextThe folder of the skill, with its SKILL.md. Its name and description are written in SKILL.md, not here.
run_scriptsnotrue or falseWhether the model may run the scripts in the folder scripts/ of the skill. The default is true.
max_iternowhole numberThe most reads of files and runs of scripts together, for this skill, in one run of a node. The default is 20, at least 1; the activation is not counted. One more fails the run (tool_limit).
timeoutnowhole numberThe seconds a script may take. The default is 30, at least 1.
max_filesnowhole numberThe most files listed when the skill is activated. The default is 200, at least 1.
max_file_bytesnowhole numberThe largest file the model may read, and the most bytes kept of the output of a script. The default is 100000, at least 1.
max_depthnowhole numberThe most levels of sub-folders listed when the skill is activated. The default is 6, at least 1.

external

KeyRequiredValueDescription
vectordbnolist of: map (below)Vector databases the nodes search: what they find becomes {{chunks}} in the prompt.
searchnolist of: map (below)Search engines that are not vector databases. They cannot run yet: a node that uses one fails when it runs.
memorynolist of: map (below)Memories that keep the conversation of a node between runs.

external.vectordb[]

KeyRequiredValueDescription
idyesthe id of this vectordbThe id of the vector database, cited by the nodes and by the memories.
provideryesqdrant or chromadbThe kind of database.
urlnotextThe URL of the database. Mandatory; its host must be in allowed_hosts.
api_keynosecretThe key of the database, read from an environment variable when it is used, and sent as the header api-key (qdrant) or x-chroma-token (chromadb).
collectionnotextThe collection that is searched. Mandatory.
top_knowhole numberHow many chunks a search gives back. The default is 5.
timeoutnowhole numberThe seconds a search may take, at least 1. The default is 60.
embeddingyesthe id of an embeddingThe embedding model that turns the query into a vector.
text_fieldnotextThe field of the payload that holds the text of a chunk. Mandatory with qdrant, not allowed with chromadb, which keeps the text in its documents.
tenantnotextThe tenant, with chromadb only. The default is default_tenant.
databasenotextThe database, with chromadb only. The default is default_database.

external.search[]

KeyRequiredValueDescription
idyesthe id of this searchThe id of the search engine, cited by the nodes.
provideryestextThe kind of search engine.
urlyestextThe URL of the search engine. Its host must be in allowed_hosts.
accessnoany valueHow to get in. Its content is not defined yet.

external.memory[]

KeyRequiredValueDescription
idyesthe id of this memoryThe id of the memory, cited by the nodes.
provideryesjson_file or vectordbWhere the memory is kept: json_file, a JSON file; vectordb, a vector database, which cannot run yet.
pathnotextThe JSON file, with json_file only (where it is mandatory). It is created at the first write.
refnothe id of a vectordbThe vector database, with vectordb only (where it is mandatory).
syntnomap (below)The summary, with json_file only. Without it the messages are never summarized, and the memory has no placeholder.
chatnomap (below)The history, with json_file only (where it is mandatory).

external.memory[].synt

KeyRequiredValueDescription
lengthyeswhole numberHow many exchanges the record of a node reaches before they are summarized, at least 1.
modelyesthe id of a modelThe model that writes the summary.
promptnothe id of a promptThe prompt of the summary, which must use both {{synt}} (the previous summary) and {{chat}} (the exchanges to summarize). Without it the program uses a prompt of its own.
max_tokensnowhole numberThe most tokens of the summary. The default is 4000, since a model that reasons spends part of them before it writes.

external.memory[].chat

KeyRequiredValueDescription
lengthyeswhole numberHow many exchanges become the history of a call, at least 1.
embeddingnothe id of an embeddingThe embedding model that turns the messages of the user into vectors. With it, the history is the exchanges most similar to the new message, instead of the last ones.

blackboards[]

KeyRequiredValueDescription
idyesthe id of this blackboardThe id of the blackboard, cited by the nodes and used as the placeholder of its text.
sourceyesmemory, or map (below)Where the blackboard is kept: memory, in the program, empty at the start and lost at the end of the run; or a file. A URL is refused.

blackboards[].source

The form with file:

KeyRequiredValueDescription
fileyestextA Markdown file, which must exist when the file is checked and start with its header: a <description> and a <purpose>, each followed by a text, between two --- lines (blackboard_header).

The form with url and access:

KeyRequiredValueDescription
urlyestextA URL. It is not supported: the file is refused when it is checked (not_supported), since a board is written as well as read.
accessnoany valueHow to get in. Its content is not defined yet.

graph

KeyRequiredValueDescription
nodesyeslist of: map (below)The nodes: each a model, what it uses, where its input comes from and where its output goes.
edgesyeslist of: a step (below)The order in which the nodes run: a list read in order.

graph.nodes[]

KeyRequiredValueDescription
idyesthe id of this nodeThe id of the node, cited by the edges.
modelnomap (below)The model of the node and the settings of its calls. Mandatory, except on a validation node, which has it inside validation-node.
externalnomap (below)The vector databases, search engines and memories the node uses.
resourcesnomap (below)The prompt, the tools, the MCP servers and the skills of the node.
blackboardnomap (below)The one blackboard the node manages.
medianomap (below)The media the node reads and produces.
messagenomap (below)Where the text of the node comes from and where its answer goes.
validation-nodenomap (below)Makes the node a validation node, which reads and judges and produces nothing; the node then has only id and validation-node. Approved, the message it examined goes on unchanged. It stands in the main flow only, never in a group or a react.

graph.nodes[].model

KeyRequiredValueDescription
idyesthe id of a modelThe model the node calls.
temperaturenonumberGiven to the provider as it is written.
top_pnonumberGiven to the provider as it is written.
max_tokensnowhole numberThe most tokens of the answer: the cap on the cost, set for each node. Mandatory with anthropic, and with publisher anthropic on vertex_ai and azure_foundry; without it the provider decides.
reasoningnooff, minimal, low, medium, high or maxHow much the model reasons, sent in the form of its provider; a level the provider does not have is replaced by the nearest one. Without it nothing is sent. off is an error on gemini and with publisher google.

graph.nodes[].external

KeyRequiredValueDescription
vectordbnolist of: map (below)The vector databases the node searches, in this order: what they find goes where the prompt writes {{chunks}}.
searchnolist of: map (below)The search engines the node uses. They cannot run yet.
memorynolist of: map (below)The memories the node reads and writes.

graph.nodes[].external.vectordb[]

KeyRequiredValueDescription
idyesthe id of a vectordbThe vector database.
queryyestextWhat is searched: user_message, the message of the user, or a fixed text.
utilitynomap (below)Utilities on the query and on the chunks.

graph.nodes[].external.vectordb[].utility

KeyRequiredValueDescription
querynothe id of an utility, or list of: the id of an utilityUtilities that change the query, before it is turned into a vector.
chunksnothe id of an utility, or list of: the id of an utilityUtilities that change each chunk found, before the prompt.

graph.nodes[].external.search[]

KeyRequiredValueDescription
idyesthe id of a searchThe search engine. Its result goes where the prompt writes {{<search-id>}}.
queryyestextWhat is searched: user_message, the message of the user, or a fixed text.

graph.nodes[].external.memory[]

KeyRequiredValueDescription
idyesthe id of a memoryThe memory. Its summary, if it has synt, goes where the prompt writes {{<memory-id>}}.
readyesmap (below)Which roles of the saved conversation come back as the history of the call.
writeyesmap (below)Which roles of this exchange are saved.

graph.nodes[].external.memory[].read

KeyRequiredValueDescription
useryestrue or falseThe messages of the user.
assistantyestrue or falseThe answers of the node.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change, in read, each message read back and the summary; in write, what is saved, after the utilities of message.output.

graph.nodes[].external.memory[].write

KeyRequiredValueDescription
useryestrue or falseThe messages of the user.
assistantyestrue or falseThe answers of the node.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change, in read, each message read back and the summary; in write, what is saved, after the utilities of message.output.

graph.nodes[].resources

KeyRequiredValueDescription
promptnothe id of a promptThe prompt of the node. Without it the model gets no system text and its user text is the message of the node, which needs exactly one of the two messages (prompt_required).
toolsnolist of: the id of a toolThe tools the model may call.
mcp_serversnolist of: the id of an MCP serverThe MCP servers whose tools the model may call.
skillsnolist of: the id of a skillThe skills the model may use.
max_roundsnowhole numberThe most rounds in which the model may ask for tools in one run of the node. The default is 20, at least 1. Every round counts, whatever it asks for: also a skill, or a tool the node does not have, which no max_iter counts. One more round fails the run (tool_limit).

graph.nodes[].blackboard

KeyRequiredValueDescription
idyesthe id of a blackboardThe blackboard.
readnotrue or falsetrue: its text goes where the prompt writes {{<blackboard-id>}}, which is then mandatory. The default is false.
writenomap (below)After the node answers, its text is added to the blackboard, separated by an empty line.
cleanupnotrue or falsetrue: when the node is done, everything below the header is removed. Not with an enabled write (cleanup_write). The default is false.

graph.nodes[].blackboard.write

KeyRequiredValueDescription
enabledyestrue or falseWhether the node writes.
placeyestop or bottomWhere the text is added: at the top or at the bottom of what is already below the header.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change the text written, after the utilities of message.output.

graph.nodes[].media

KeyRequiredValueDescription
inputnolist of: map (below)The media the node reads.
outputnolist of: map (below)The media the node produces.

graph.nodes[].media.input[]

KeyRequiredValueDescription
idyesthe id of a mediaThe media.
fromyesresources or noderesources: a media with a source. node: a media produced by a node connected before (media_not_from_node); it arrives only if that node passes it on with node: true.
utilitynothe id of an utility, or list of: the id of an utilityUtilities the media goes through before the node uses it. A file on disk reaches a program as its path; everything else reaches a utility as its bytes. They must end with a text or an image.

graph.nodes[].media.output[]

KeyRequiredValueDescription
idyesthe id of a mediaThe media.
fromnomodel or messagemodel (the default): the model makes it, so the media must have generate. message: a utility makes it from the text of the node, so the media must be of type file and utility is mandatory.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change the file the model made, or that make the file from the text of the node. They must end with a file.
assistantnotrue or falsetrue: the media goes to the final output. The default is false.
nodenotrue or falsetrue: the media goes to the node connected after. The default is false.

graph.nodes[].message

KeyRequiredValueDescription
inputnomap (below)Where the text of the node comes from.
outputnomap (below)Where the answer of the node goes.

graph.nodes[].message.input

KeyRequiredValueDescription
user_messagenotrue or falsetrue: the node takes the message of the user, the one given to the command. The default is false.
agent_messagenotrue or falsetrue: the node takes what the node connected before sends on. The default is false.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change the messages the node takes, which are then used everywhere: in the prompt, in the queries and in what the memories save. A message the node does not take is not changed.

graph.nodes[].message.output

KeyRequiredValueDescription
assistant_messagenotrue or falsetrue: the answer goes to the final output. The default is false.
nodenotrue or falsetrue: the answer goes to the node connected after, as its agent_message. The default is false.
reasoningnotrue or falsetrue: the reasoning of the model goes to the final output, even when assistant_message is false. It never goes to another node. The default is false.
logprobsnowhole numberFrom 0 to 20: the log probability of every token of the answer goes to the final output, even when assistant_message is false, with that many most likely alternatives for each token; on ollama and custom a model that reasons gives those of its reasoning too, before them. It never goes to another node. Only on openai, mistral, ollama, custom and azure_foundry with publisher openai. Without it nothing is asked.
schemanoany valueA JSON Schema, written as JSON in a text or as YAML: the model answers in that shape, and the answer is a JSON value. The API of the provider enforces it. It must be a valid JSON Schema (bad_value).
schema_promptnoany valueA JSON Schema, as schema, enforced by a-graph instead of the API, for a model whose API does not: the schema is written in the prompt, and an answer that is not one JSON value is sent back to the model to be corrected. Never together with schema (unexpected_field), nor on the nodes of a batch (batch_schema_prompt). It must be a valid JSON Schema (bad_value).
max_attemptsnowhole numberWith schema_prompt only: the most calls for one answer, the first one included, so that 1 corrects nothing. The default is 3, at least 1. When the last one is not one JSON value the run stops (attempt_limit).
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change the answer once, before every destination.

graph.nodes[].validation-node

KeyRequiredValueDescription
modelyesmap (below)The model of the node and the settings of its calls.
resourcesyesmap (below)The prompt of the node, its only resource.
externalnomap (below)The vector databases, search engines and memories the node reads.
blackboardnomap (below)The blackboard the node reads.
medianomap (below)The media the node reads.
messagenomap (below)Where the text the node judges comes from.
responsenoany valueAccepted and not used: the answer of a validation node always has the shape { validation, reasons, log }.
structured_outputyesapi or promptHow the answer of the model is made to match the schema a-graph writes for it. api: the API of the provider enforces it, as schema does for a node. prompt: a-graph does, as schema_prompt does for a node, for a model whose API does not; the provider gets no schema. Mandatory.
max_attemptsnowhole numberWith structured_output: prompt only: the most calls for one answer, the first one included, so that 1 corrects nothing. The default is 3, at least 1. When the last one is not one JSON value the run stops (attempt_limit).
on_erroryesstop or nodeWhat a refusal does. stop: the run ends, and the final output gets the reasons and the log. node: the run goes on, and the next node receives the problem as its agent_message; it needs a node after it.

graph.nodes[].validation-node.model

KeyRequiredValueDescription
idyesthe id of a modelThe model the node calls.
temperaturenonumberGiven to the provider as it is written.
top_pnonumberGiven to the provider as it is written.
max_tokensnowhole numberThe most tokens of the answer: the cap on the cost, set for each node. Mandatory with anthropic, and with publisher anthropic on vertex_ai and azure_foundry; without it the provider decides.
reasoningnooff, minimal, low, medium, high or maxHow much the model reasons, sent in the form of its provider; a level the provider does not have is replaced by the nearest one. Without it nothing is sent. off is an error on gemini and with publisher google.

graph.nodes[].validation-node.resources

KeyRequiredValueDescription
promptyesthe id of a promptThe prompt of the judgment: its criterion. Mandatory.

graph.nodes[].validation-node.external

KeyRequiredValueDescription
vectordbnolist of: map (below)The vector databases the node searches, as for a node.
searchnolist of: map (below)The search engines the node uses. They cannot run yet.
memorynolist of: map (below)The memories the node reads.

graph.nodes[].validation-node.external.vectordb[]

KeyRequiredValueDescription
idyesthe id of a vectordbThe vector database.
queryyestextWhat is searched: user_message, the message of the user, or a fixed text.
utilitynomap (below)Utilities on the query and on the chunks.

graph.nodes[].validation-node.external.vectordb[].utility

KeyRequiredValueDescription
querynothe id of an utility, or list of: the id of an utilityUtilities that change the query, before it is turned into a vector.
chunksnothe id of an utility, or list of: the id of an utilityUtilities that change each chunk found, before the prompt.

graph.nodes[].validation-node.external.search[]

KeyRequiredValueDescription
idyesthe id of a searchThe search engine. Its result goes where the prompt writes {{<search-id>}}.
queryyestextWhat is searched: user_message, the message of the user, or a fixed text.

graph.nodes[].validation-node.external.memory[]

KeyRequiredValueDescription
idyesthe id of a memoryThe memory, read whole, both roles, without writing it.

graph.nodes[].validation-node.blackboard

KeyRequiredValueDescription
idyesthe id of a blackboardThe blackboard, read without writing it.

graph.nodes[].validation-node.media

KeyRequiredValueDescription
inputnolist of: map (below)The media the node reads.

graph.nodes[].validation-node.media.input[]

KeyRequiredValueDescription
idyesthe id of a mediaThe media.
fromyesresources or noderesources: a media with a source. node: a media produced by a node connected before (media_not_from_node); it arrives only if that node passes it on with node: true.
utilitynothe id of an utility, or list of: the id of an utilityUtilities the media goes through before the node uses it. A file on disk reaches a program as its path; everything else reaches a utility as its bytes. They must end with a text or an image.

graph.nodes[].validation-node.message

KeyRequiredValueDescription
inputnomap (below)Where the text of the node comes from.

graph.nodes[].validation-node.message.input

KeyRequiredValueDescription
user_messagenotrue or falsetrue: the node takes the message of the user, the one given to the command. The default is false.
agent_messagenotrue or falsetrue: the node takes what the node connected before sends on. The default is false.
utilitynothe id of an utility, or list of: the id of an utilityUtilities that change the messages the node takes, which are then used everywhere: in the prompt, in the queries and in what the memories save. A message the node does not take is not changed.

step

One entry of graph.edges.

A map with exactly one of these keys.

KeyValueDescription
startthe id of a nodeThe first node: the first entry, and the only start (edge_start). A graph of one node is its start alone. A graph whose first entry is a group or a react may leave it out: that entry then takes the message of the user.
nextthe id of a nodeA node that runs after the entry before it. A node may appear more than once in the edges, and each appearance is a run of it.
endthe id of a nodeThe last node: the last entry, and the only end (edge_end). Every graph needs it, except one of a single node and one whose last entry is a group or a react: there the result is what the nodes send to the final output.
lineara group (below)A group whose branches run one after the other. limit is not allowed.
parallela group (below)A group whose branches run all together, each as a task of its own; with limit, at most that many at a time. The first branch that fails ends the run.
concurrenta group (below)A group whose branches run all together, at most limit at a time; limit is mandatory. The first branch that fails ends the run.
batcha group (below)A group whose branches are sent to the provider as one batch job or, with limit, as jobs of at most that many requests each, sent one after the other. The branches are plain nodes, all with the same model, without tools, MCP servers or skills.
reacta react (below)A controller that decides at run time which worker to call. A react cannot be a worker of another react, nor stand in a group among its workers.

group

The entries of a group: limit, in, fan and out, each written once and in this order.

Each entry is a map with exactly one of these keys.

KeyValueDescription
limitwhole numberIn parallel and concurrent, how many branches run at the same time; in batch, how many requests go in each job, the jobs being sent one after the other.
inthe id of a nodeThe node that runs first. What it sends on is the input of every branch. Mandatory.
fanlist of: a branch (below)The branches, at least one. Mandatory.
outthe id of a nodeThe node that receives the answers of all the branches, packed as one, in the order of the fan, and whose output goes on. It may be left out only if no node of the group sends its output on (group_out_required).

react

A controller and the workers it calls.

KeyRequiredValueDescription
controlleryesthe id of a nodeThe node that decides at every turn which worker to call, or gives the final answer, which is the output of the react. It has no tools, MCP servers, skills, blackboard, output schema or schema_prompt of its own.
max_iterationsyeswhole numberThe most calls to workers. One more fails the run (react_limit).
structured_outputyesapi or promptHow the answer of the model is made to match the schema a-graph writes for it. api: the API of the provider enforces it, as schema does for a node. prompt: a-graph does, as schema_prompt does for a node, for a model whose API does not; the provider gets no schema. Mandatory.
max_attemptsnowhole numberWith structured_output: prompt only: the most calls for one answer, the first one included, so that 1 corrects nothing. The default is 3, at least 1. When the last one is not one JSON value the run stops (attempt_limit).
componentsyeslist of: a worker (below)The workers the controller may call. Two workers with the same id are an error (duplicate_id).

branch

One branch of a fan: a node, or a whole group or react.

A map with exactly one of these keys.

KeyValueDescription
nextthe id of a nodeA branch made of one node.
lineara group (below)A group whose branches run one after the other. limit is not allowed.
parallela group (below)A group whose branches run all together, each as a task of its own; with limit, at most that many at a time. The first branch that fails ends the run.
concurrenta group (below)A group whose branches run all together, at most limit at a time; limit is mandatory. The first branch that fails ends the run.
batcha group (below)A group whose branches are sent to the provider as one batch job or, with limit, as jobs of at most that many requests each, sent one after the other. The branches are plain nodes, all with the same model, without tools, MCP servers or skills.
reacta react (below)A controller that decides at run time which worker to call. A react cannot be a worker of another react, nor stand in a group among its workers.

worker

One worker of a react: a node, or a whole group, called by the id of its in node.

A map with exactly one of these keys.

KeyValueDescription
workerthe id of a nodeA worker made of one node.
lineara group (below)A group whose branches run one after the other. limit is not allowed.
parallela group (below)A group whose branches run all together, each as a task of its own; with limit, at most that many at a time. The first branch that fails ends the run.
concurrenta group (below)A group whose branches run all together, at most limit at a time; limit is mandatory. The first branch that fails ends the run.
batcha group (below)A group whose branches are sent to the provider as one batch job or, with limit, as jobs of at most that many requests each, sent one after the other. The branches are plain nodes, all with the same model, without tools, MCP servers or skills.
reacta react (below)A controller that decides at run time which worker to call. A react cannot be a worker of another react, nor stand in a group among its workers.

On this page

The filepassportpassport.adlpassport.adl.data_classificationpassport.adl.lifecyclepassport.adl.permissionspassport.adl.permissions.networkobservabilityobservability.outputtraceverbosemodels[]models[] with provider: anthropicmodels[] with provider: openaimodels[] with provider: geminimodels[] with provider: mistralmodels[] with provider: bedrockmodels[].credentials with provider: bedrockmodels[].batch with provider: bedrockmodels[] with provider: vertex_aimodels[].batch with provider: vertex_aimodels[] with provider: azure_foundrymodels[].credentials with provider: azure_foundrymodels[].batch with provider: azure_foundrymodels[] with provider: ollamamodels[] with provider: customembeddings[]embeddings[] with provider: ollamautilities[]resourcesresources.prompts[]resources.prompts[].contentresources.prompts[].sourceresources.tools[]resources.mcp_servers[]resources.media[]resources.media[].typeresources.media[].sourceresources.media[].generateresources.media[].generate.sizeresources.media[].providerresources.media[].provider.openairesources.media[].provider.geminiresources.skills[]externalexternal.vectordb[]external.search[]external.memory[]external.memory[].syntexternal.memory[].chatblackboards[]blackboards[].sourcegraphgraph.nodes[]graph.nodes[].modelgraph.nodes[].externalgraph.nodes[].external.vectordb[]graph.nodes[].external.vectordb[].utilitygraph.nodes[].external.search[]graph.nodes[].external.memory[]graph.nodes[].external.memory[].readgraph.nodes[].external.memory[].writegraph.nodes[].resourcesgraph.nodes[].blackboardgraph.nodes[].blackboard.writegraph.nodes[].mediagraph.nodes[].media.input[]graph.nodes[].media.output[]graph.nodes[].messagegraph.nodes[].message.inputgraph.nodes[].message.outputgraph.nodes[].validation-nodegraph.nodes[].validation-node.modelgraph.nodes[].validation-node.resourcesgraph.nodes[].validation-node.externalgraph.nodes[].validation-node.external.vectordb[]graph.nodes[].validation-node.external.vectordb[].utilitygraph.nodes[].validation-node.external.search[]graph.nodes[].validation-node.external.memory[]graph.nodes[].validation-node.blackboardgraph.nodes[].validation-node.mediagraph.nodes[].validation-node.media.input[]graph.nodes[].validation-node.messagegraph.nodes[].validation-node.message.inputstepgroupreactbranchworker