SubgraphAssertionsBuilder
Builder class for constructing subgraph-level assertions. This includes setup for nodes, edges, reachability assertions, and context-related mock setups.
Parameters
: A NodeReference.SubgraphNode reference to a subgraph of the agent's graph strategy
: A clock that is used for mock message timestamps
: Tokenizer that will be used to estimate token counts in mock messages
Constructors
Types
A builder class used to facilitate the creation and management of edge assertions in a stage context. Delegates functionality to a local agent stage context mock builder for shared behaviors.
A builder class for constructing and managing assertions related to the outputs of nodes within a stage. This class provides functionality to define and evaluate assertions for node outputs in a local agent's stage.
Functions
Asserts the edges in the context of a graph by applying a set of edge assertions built using the provided block.
Asserts the existence of a node by its name within the stage structure and returns a reference to it. If the node with the given name has not been asserted previously, it creates a new NamedNode
reference and records it in the nodes
map for tracking.
Asserts the state of nodes in the stage using a provided block to define the desired assertions. The block operates on a NodeOutputAssertionsBuilder
to specify expectations for node inputs and outputs.
Asserts that there is a reachable path between two specified nodes within a stage.
Asserts the existence of a subgraph by its name
Creates an assistant message with the provided text and finish reason.
Retrieves a reference to the finish node of the current stage in the graph.
Retrieves the starting node reference of the stage.
Creates a Message.Tool.Call
instance for the given tool and its arguments.