teff.graph.execution¶
teff.graph.execution
¶
The graph execution engine.
The heavy lifting of a :class:~teff.graph.Graph run lives here as a
standalone :func:execute function so the :class:~teff.graph.Graph
class stays a thin facade. It walks the graph from the entry point,
executes each node, routes along edges whose conditions match the
current state, and (optionally) persists checkpoints so a crashed or
interrupted run can be resumed.
Functions:
| Name | Description |
|---|---|
execute |
Run graph with run/session correlation ids in the log context. |
execute
async
¶
execute(
graph,
state,
tools=None,
registry=None,
reducers=None,
hooks=None,
node_timeout=None,
max_iterations=None,
checkpointer=None,
checkpoint_id=None,
owner=DEFAULT_OWNER,
resume=None,
tracer=None,
state_schema=None,
emit=None,
providers=None,
default_provider=None,
default_model=None,
on_llm_payload=None,
)
Run graph with run/session correlation ids in the log context.
Source code in teff/graph/execution.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |