Skip to content

API agentmesh_core

Devrajsinh Gohil edited this page Aug 30, 2026 · 1 revision

API Reference: agentmesh_core

C++ Pybind11 extension module exposing bare-metal graph execution primitives.


agentmesh_core.PyWorkflowEngine

Methods

add_node(id: str, callable: Callable) -> None

Registers a node with the given string identifier and callable handler.

add_edge(from_node: str, to_node: str) -> None

Adds a static directed edge between two nodes.

add_conditional_edge(source_node: str, router: Callable) -> None

Binds a dynamic router function to source_node.

add_reducer(field: str, reducer: Callable) -> None

Registers a binary reducer function for channel aggregation on field.

set_entry_point(node_id: str) -> None

Sets the starting entry node for workflow execution.

run(initial_state: dict, max_loops: int = 100) -> dict

Executes the workflow graph using wave scheduling and returns the final state.\n

Clone this wiki locally