Versions in this module Expand all Collapse all v0 v0.1.1 Jul 8, 2026 v0.1.0 Jul 8, 2026 Changes in this version + func NewNodeContext(ctx context.Context, node *NodeContext) context.Context + type Checkpoint struct + ID string + Received map[string]int + State map[string]any + Visited map[string]bool + func (c *Checkpoint) Clone() *Checkpoint + type Checkpointer interface + Resume func(ctx context.Context, checkpointID string) (*Checkpoint, error) + Save func(ctx context.Context, checkpoint *Checkpoint) error + type CompileOption func(*compileConfig) + func WithCheckpointer(checkpointer Checkpointer) CompileOption + type EdgeCondition func(ctx context.Context, state State) bool + type EdgeOption func(*conditionalEdge) + func WithEdgeCondition(condition EdgeCondition) EdgeOption + type ExecuteOption func(*executeOptions) + func WithCheckpointID(CheckpointID string) ExecuteOption + type Executor struct + func NewExecutor(g *Graph, checkpointer Checkpointer) *Executor + func (e *Executor) Execute(ctx context.Context, state State, opts ...ExecuteOption) (State, error) + func (e *Executor) Resume(ctx context.Context, state State, opts ...ExecuteOption) (State, error) + type Graph struct + func New(opts ...Option) *Graph + func (g *Graph) AddEdge(from, to string, opts ...EdgeOption) *Graph + func (g *Graph) AddNode(name string, handler Handler) *Graph + func (g *Graph) Compile(opts ...CompileOption) (*Executor, error) + func (g *Graph) SetEntryPoint(start string) *Graph + func (g *Graph) SetFinishPoint(end string) *Graph + type Handler func(ctx context.Context, state State) (State, error) + type Middleware func(Handler) Handler + func ChainMiddlewares(mws ...Middleware) Middleware + func Retry(attempts int, opts ...retry.Option) Middleware + type NodeContext struct + Name string + func FromNodeContext(ctx context.Context) (*NodeContext, bool) + type Option func(*Graph) + func WithMiddleware(ms ...Middleware) Option + func WithParallel(enabled bool) Option + type State map[string]any + func (s State) Clone() State + type Task struct