Graph-first
Model workflows as nodes and edges with explicit entry points.
Petal Flow is a graph runtime for building AI agent workflows. Chain LLM calls, tools, routers, and transformations into directed graphs that are inspectable, testable, and production-ready.
Graph-first
Model workflows as nodes and edges with explicit entry points.
Runtime control
Built-in runtime events, debugging hooks, and step controllers.
LLM-native
LLM nodes, routers, tools, and guards built for AI operations.
Composable
Mix built-in nodes with custom Go functions.
Petal Flow and Iris are designed to work together. Use Iris providers inside Petal Flow nodes to power LLM calls while keeping routing and orchestration inside a graph.
// Use Iris providers inside Petal Flow nodesllmNode := petalflow.NewLLMNode("summarize", llmConfig{ Provider: openai.NewFromKeystore(), Model: "gpt-4o", Prompt: "Summarize the following: {{.input}}",})This keeps your AI stack modular and observable. Petal Flow handles the workflow orchestration while Iris handles the LLM interactions.