Skip to main content

Description

Agent Composer uses a YAML-based configuration format to define workflow graphs. This page describes the root-level fields and basic node structure.

Root-Level Fields

At the root level, the Agent Composer YAML format accepts four main fields:

inputs

Lists the inputs of the graph mapped to their accepted types. Type annotations should conform to Python typing syntax.
The main graph currently only accepts a single str input named query, unless used as a subgraph.

outputs

Lists the outputs of the graph mapped to their types. A graph can have arbitrarily many outputs, as long as their types are JSON-serializable.

nodes

Lists the nodes in the graph and specifies how they are connected.

ui_output

Specifies exactly one of the fields listed under outputs as the UI output. Required when there are multiple outputs; optional for single-output graphs.

Node Format

Nodes represent basic operations in the graph. A typical node definition:

Core Node Arguments

Config Parameters

Config parameters are passed as keyword arguments to the step constructor. Nested configurations are supported:
If a config field is not specified, the platform agent configuration setting is used as the default.

Input and Output Nodes

Every graph has an implicit input node named __inputs__. Access inputs via:
The output node must be explicitly added: