EdgeAssertion

@TestOnly
data class EdgeAssertion<Input, Output>(val node: NodeReference<Input, Output>, val context: AIAgentContextBase, val output: Output, val expectedNode: NodeReference<*, *>)(source)

Represents the assertion of an edge in a graph structure related to AI agent operations.

Parameters

Input

The type of the input parameter for the node.

Output

The type of the output parameter for the node.

Constructors

Link copied to clipboard
constructor(node: NodeReference<Input, Output>, context: AIAgentContextBase, output: Output, expectedNode: NodeReference<*, *>)

Properties

Link copied to clipboard

The context associated with the AI agent during the assertion.

Link copied to clipboard

The reference to the expected node where the edge should lead.

Link copied to clipboard

The reference to the current node involved in this edge assertion.

Link copied to clipboard

The output value produced or expected by the edge during assertion.