MeshFlow
  • Cloud PlatformDeployIntegrationsInit CLIWhy MeshFlow
  • DocsLearn
  • CustomersCertificationBlogChangelogCommunity
  • Pricing
Sign inGet started
Pricing
Sign inGet started
MeshFlow

The production-safe standard for agentic AI.
Apache 2.0 — free forever.

Product
  • Pricing
  • Cloud
  • Compare
  • Init CLI
  • Changelog
Docs
  • Quickstart
  • Core concepts
  • Compliance guide
  • Token optimization
  • API reference
Resources
  • Blog
  • Customers
  • Community
  • PyPI
  • GitHub
Company
  • Discord
  • Twitter
  • Security
  • License
MeshFlow © 2026 · Yaya Systems · Apache 2.0
All systems operational
MeshFlowdocs
Search docs...⌘K
v1.13.0 GitHub Discord
Getting startedQuickstartInstallationCore conceptsHarness architectureSkills vs ToolsSandbox mode
GuidesBuilding agentsMulti-agent workflowsModel RoutersCost AnalyticsCompliance guideToken optimization
Claude & AIAdvisor patternThinking budgetsDynamic workflowsContext compactionTool streaming
Governancemeshflow-forensicZero-Trust PoliciesSOC 2 assertionEU AI ActProduction Readiness
IntegrationsOpenAI Agents SDKLangGraphCrewAIMCP ToolsTypeScript SDKOTel / OTLPAutoGen 0.4+
API ReferenceWorkflowAgentCostCapAdvisorAgentCostRegressionGate
Docs/API Reference/Workflow

Workflow

The Workflow class is the high-level synchronous wrapper for sequential agent workflows. It compiles agents into a governed Team and applies the requested cost cap and mode.

classmeshflow.Workflow

Parameters

ParameterTypeRequiredDescription
cost_capCostCapoptionalHard spending limit in USD. Defaults to a $5 policy budget when omitted.
modestroptional"production" (default) or "sandbox". Sandbox mocks all LLM calls — zero API spend.

Methods

.add(*agents)

Adds one or more Agent instances to the sequential workflow. Use Team(pattern="parallel") when you need fan-out/fan-in concurrency.

.run(task) → WorkflowResult

Executes the workflow. Returns a WorkflowResult with .output, .cost_usd, .tokens, .run_id, .paused_nodes, and .ledger_db.

Previous
Token optimization
Next
Agent
On this pageConstructorParametersMethods