NodeOutputAssertionsBuilder
class NodeOutputAssertionsBuilder(stageBuilder: Testing.Config.SubgraphAssertionsBuilder<*, *>, context: AIAgentContextMockBuilder = stageBuilder.context.copy()) : AIAgentContextMockBuilderBase(source)
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.
Constructors
Link copied to clipboard
constructor(stageBuilder: Testing.Config.SubgraphAssertionsBuilder<*, *>, context: AIAgentContextMockBuilder = stageBuilder.context.copy())
Types
Properties
Link copied to clipboard
Link copied to clipboard
A mutable list that stores assertions representing the expected behavior and output of nodes in the context of a specific staging environment for testing purposes.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Creates and returns a new copy of the NodeOutputAssertionsBuilder instance.
Link copied to clipboard
fun withContext(block: Testing.Config.SubgraphAssertionsBuilder.NodeOutputAssertionsBuilder.() -> Unit)
Executes the specified block of code within a duplicate context of the current NodeOutputAssertionsBuilder
.
Link copied to clipboard
infix fun <I, O> NodeReference<I, O>.withInput(input: I): Testing.Config.SubgraphAssertionsBuilder.NodeOutputAssertionsBuilder.NodeOutputPair<I, O>
Associates the provided input with the current node reference, creating a pair that links the node to its corresponding input.