Skip to main content
The praisonai-ts workflow command reads a YAML file, builds one agent per step, and runs each step against your model.

Quick Start

1

Write a workflow

Save a minimal wf.yaml with one agent and one step.
2

Run it


Workflow YAML

A workflow file has top-level metadata, an agents: map, and a steps: list.
agents: is a map, not a list. A list-of-- form such as - name: Writer will not register any agent, and every step that names a list-shaped agent is rejected.

Agents block

Each entry maps an agent name to its definition, in long form or shorthand. The shorthand writer: gpt-4o-mini is equivalent to writer: { llm: gpt-4o-mini }.

Steps block

Each step names an agent, gives it a task, and optionally declares dependencies. Use inline-array syntax for dependencies. A bare depends_on: is an empty list.

Sequential vs parallel

Steps run in order by default; --parallel runs them all at once without shared context.

Failure and exit codes

The command rejects wrong-schema files and reports step failures with specific exit codes.
Step-failure exit codes are classified from the underlying error message: a missing API key (the common case) maps to 5, a network error to 4, a config error to 3, and anything else to 1. Schema rejections always exit 1 before any agent is built — so in CI, a non-1 failure means the file was valid but a step failed at runtime.

Command reference

Run a workflow file with optional parallel and JSON flags.
JSON output records each step under results:

Workflows (SDK)

Build workflows in code with AgentFlow and the YAML workflow engine.

Agent Flow

Chain steps programmatically with AgentFlow.

Python Workflow CLI

The Python praisonai workflow command for cross-language users.