Skip to main content

Flow

Use this page to reference flow inputs, nodes, edges, and execution budgets.

The Flow manifest: the envelope (apiVersion, kind, metadata; see Manifests) plus spec.

Fields​

FlowSpec (spec)​

FieldTypeDefaultMeaning
inputFlowInputrequiredThe input the ticket starts from.
nodesdict[str, FlowNode]requiredThe flow's nodes, by id.
edgeslist[FlowEdge]requiredThe flow's edges.
requiresWorkspacenone or folder or gitnoneWhere the flow works.
budgetBudgetBudget()The flow's budget ceilings.
alertslist[float][0.75, 0.9]The budget fractions at which to alert a person.
humanReminderduration or null12:00:00Remind about an unanswered human request after this long; null turns it off.

FlowInput (spec.input)​

FieldTypeDefaultMeaning
artifactstrrequiredThe Schema of the ticket's input.

FlowNode (spec.nodes)​

FieldTypeDefaultMeaning
typestrrequiredThe node's type: agent, script, human, lane, map or a plugin's.
agentstr or nullnullagent: the Agent manifest the node runs.
runstr or nullnullscript: the command, or a built-in name.
messagestr or nullnullhuman: what the node asks the person.
actionslist[str][]human: the answers the node offers.
requireCommentlist[str][]human: the actions that need a comment with their answer.
attachFilesboolFalsehuman: whether the answer may attach files.
usesstr or nullnulllane: the Lane manifest the node runs.
withdict[str, str]{}lane: the parameters passed to the lane, by name.
overstr or nullnullmap: the artifact whose items the node repeats over.
lanestr or nullnullmap: the Lane manifest run once per item.
itemAsstr or nullnullmap: the name each item takes inside the lane.
maxItemsint or nullnullmap: the most items to run.
maxParallelint or nullnullmap: how many items to run at once.
writesstr or nullnullscript/human: the Schema of the artifact the node writes.

FlowEdge (spec.edges)​

FieldTypeDefaultMeaning
fromstr or list[str]requiredThe source node, or several for the same target.
tostr or nullnullThe target node, when the edge goes to one.
whenstr or nullnullA Python expression over artifacts; the edge is taken when it is true.
chooselist[str] or nullnullThe nodes the agent may pick among, when the edge branches.
joinstr or nullnullThe node where parallel branches join.
minint or nullnullHow many of choose the agent must pick.
feedbackboolFalseWhether the target sees the source's artifact as feedback.
newRoundboolFalseWhether taking the edge starts a new round.
maxRoundsint or nullnullThe most times the edge may be taken; required for a feedback edge.

Budget (spec.budget)​

FieldTypeDefaultMeaning
tokensint or nullnullThe token ceiling.
toolCallsint or nullnullThe tool-call ceiling.
costUsdfloat or nullnullThe cost ceiling in US dollars.
wallTimeduration or nullnullThe wall-clock ceiling.
maxTurnsint or nullnullThe turn ceiling.

See also​

  • Lane for reusable sub-flows.
  • Schema for artifact fields.
  • Agent for agent node configuration.