Package-level declarations

Types

Link copied to clipboard
@TestOnly
sealed interface AssertionResult
Link copied to clipboard
@TestOnly
data class EdgeAssertion<Input, Output>(val node: NodeReference<Input, Output>, val context: AIAgentContextBase, val output: Output, val expectedNode: NodeReference<*, *>)
Link copied to clipboard
@TestOnly
data class GraphAssertions(val name: String, val start: NodeReference.Start<*>, val finish: NodeReference.Finish<*>, val nodes: Map<String, NodeReference<*, *>>, val nodeOutputAssertions: List<NodeOutputAssertion<*, *>>, val edgeAssertions: List<EdgeAssertion<*, *>>, val unconditionalEdgeAssertions: List<UnconditionalEdgeAssertion>, val reachabilityAssertions: List<ReachabilityAssertion>, val subgraphAssertions: MutableList<SubGraphAssertions>)
Link copied to clipboard
@TestOnly
data class NodeOutputAssertion<Input, Output>(val node: NodeReference<Input, Output>, val context: DummyAgentContext, val input: Input, val expectedOutput: Output)
Link copied to clipboard
@TestOnly
sealed class NodeReference<Input, Output>
Link copied to clipboard
@TestOnly
data class ReachabilityAssertion(val from: NodeReference<*, *>, val to: NodeReference<*, *>)
Link copied to clipboard
@TestOnly
data class SubGraphAssertions(val subgraphRef: NodeReference.SubgraphNode<*, *>, val graphAssertions: GraphAssertions)
Link copied to clipboard
@TestOnly
class Testing

Provides functionality for testing graph-related stages in an AI agent pipeline.

Link copied to clipboard
@TestOnly
data class UnconditionalEdgeAssertion(val node: NodeReference<*, *>, val expectedNode: NodeReference<*, *>)

Functions

Link copied to clipboard

Configures the Testing feature for graph testing.

Link copied to clipboard

Installs the Testing feature with graph testing enabled and executes the provided test block.

Link copied to clipboard

Creates a Message.Tool.Call instance for the given tool and its arguments.

Link copied to clipboard

Generates a signature object for a given tool and its arguments.

Link copied to clipboard

Constructs a ReceivedToolResult object using the provided tool and result string.

Converts a tool and its corresponding result into a ReceivedToolResult object.

Link copied to clipboard

Enables and configures the Testing feature for a Kotlin AI Agent instance.