Graph#
Core#
|
A class to represent a stateful graph for orchestrating multi-agent workflows. |
Runner#
|
Executes a compiled OrkesGraph, managing state and tracing the execution. |
Schema#
Represents an item in the node pool, which is a collection of nodes and their associated edges within the graph. |
|
Represents the trace of a single node's execution within the graph. |
|
Represents the input and output of an LLM interaction for tracking purposes. |
|
Represents the trace of a single function's execution, capturing its inputs, output, and timing. |
|
Represents the trace of a single edge traversal during a graph execution. |
|
Represents the complete execution trace of a graph run. |
Units#
|
Represents a node in the computational graph. |
|
Represents a directed connection between two nodes in the graph. |
|
An edge that unconditionally forwards data and control from a source node to a destination node. |
|
An edge that determines the next node based on the outcome of a gate function. |
|
An edge that creates multiple parallel branches of execution. |
Utilities#
|
A decorator that traces the input, output, and execution time of a function and records it in the current edge's trace. |
|
Asserts that a function has at least one parameter with the expected type annotation. |
|
Checks if an object is a TypedDict class. |
|
Checks if all values in a dictionary are of a certain type. |
Generates a random hex color code. |