Skip to main content
Version: 0.1.0

BlueprintDefinition schema

The blueprint document type, validated against the published JSON schema.

Example

blueprint.json
{
"blueprintId": "fixed-body",
"name": "Fixed Count Body",
"behaviour": {
"loopConfig": {
"terminationStrategy": "FIXED_COUNT",
"maxIterations": 3
},
"transition": "AUTO"
},
"steps": [
{
"kind": "STEP",
"stepId": "body",
"name": "Loop Body",
"behaviour": {
"type": "AGENT",
"agentRef": "loop-agent",
"transition": "AUTO"
}
}
]
}

Properties

PropertyTypeRequiredDescription
blueprintIdstringyesUnique blueprint identifier (Unique to the workflow). Must match the filename stem.
namestringyes
behaviourBlueprintBehaviouryes
stepsarray of Executableyes

Definitions

BlueprintBehaviour

PropertyTypeRequiredDescription
transitionenum (AUTO, HUMAN_REVIEW, HUMAN_APPROVAL)yes
loopConfigLoopConfig | nullno

LoopConfig

PropertyTypeRequiredDescription
terminationStrategyenum (AGENT_SIGNAL, EVALUATOR, FIXED_COUNT, FOR_EACH)yes
forEachContextKeystringnoRequired when terminationStrategy is FOR_EACH.
evaluatorAgentIdstringnoRequired when terminationStrategy is EVALUATOR.
maxIterationsintegeryes
maxIterationsActionenum (AWAIT_USER, FAIL)no
expectedIterationsintegernoOptional execution-estimation hint: expected-case iteration count (companion to the maxIterations ceiling). Must not exceed maxIterations. Advisory only; never affects runtime loop driving.

Executable

No properties.

BlueprintRef

PropertyTypeRequiredDescription
kindconst BLUEPRINT_REFyes
blueprintIdstringyes