doc: fix graph engine readme (#26337)
This commit is contained in:
parent
36406cd62f
commit
272102c06d
2 changed files with 4 additions and 4 deletions
|
|
@ -60,8 +60,8 @@ Extensible middleware for cross-cutting concerns:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
engine = GraphEngine(graph)
|
engine = GraphEngine(graph)
|
||||||
engine.add_layer(DebugLoggingLayer(level="INFO"))
|
engine.layer(DebugLoggingLayer(level="INFO"))
|
||||||
engine.add_layer(ExecutionLimitsLayer(max_nodes=100))
|
engine.layer(ExecutionLimitsLayer(max_nodes=100))
|
||||||
```
|
```
|
||||||
|
|
||||||
### Event-Driven Architecture
|
### Event-Driven Architecture
|
||||||
|
|
@ -117,7 +117,7 @@ The codebase enforces strict layering via import-linter:
|
||||||
|
|
||||||
1. Create class inheriting from `Layer` base
|
1. Create class inheriting from `Layer` base
|
||||||
1. Override lifecycle methods: `on_graph_start()`, `on_event()`, `on_graph_end()`
|
1. Override lifecycle methods: `on_graph_start()`, `on_event()`, `on_graph_end()`
|
||||||
1. Add to engine via `engine.add_layer()`
|
1. Add to engine via `engine.layer()`
|
||||||
|
|
||||||
### Debugging Workflow Execution
|
### Debugging Workflow Execution
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ debug_layer = DebugLoggingLayer(
|
||||||
)
|
)
|
||||||
|
|
||||||
engine = GraphEngine(graph)
|
engine = GraphEngine(graph)
|
||||||
engine.add_layer(debug_layer)
|
engine.layer(debug_layer)
|
||||||
engine.run()
|
engine.run()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue