Skip to content

Petal Flow API Index

PackagePurpose
coreCore node, envelope, tool, and error definitions.
graphGraph structures, builders, and edges.
runtimeRuntime execution, events, and step control.
nodesBuilt-in nodes (LLM, router, filter, guard, cache, etc.).
irisadapterAdapter to use Iris providers inside Petal Flow.

The petalflow package re-exports types and constructors from the subpackages for convenience. For new code, prefer importing subpackages directly.

  • core: data types and node primitives
  • graph: graph builders and structures
  • runtime: run options and event hooks
  • nodes: built-in node library
  • irisadapter: Iris integration