resolve

open override fun resolve(subgraph: AIAgentSubgraph<*, *>): AIAgentSubgraph<Input, Output>(source)

Resolves the specified subgraph into a strongly typed subgraph of the expected input and output types. This method ensures the resolved subgraph matches the type constraints of the current node.

Return

The resolved subgraph of type AIAgentSubgraph<Input, Output>.

Parameters

subgraph

The subgraph to resolve. This represents a structured portion of an AI agent workflow.

Throws

If the resolved subgraph does not match the expected type constraints.