withOutput
fun <Output : Any> withOutput(outputClass: ERROR CLASS: Symbol not found for Class<Output>): TypedAIAgentSubgraphBuilder<Input, Output>(source)
Specifies the output type for the subgraph and transitions to a builder capable of handling the provided input and output types. This method returns a new instance of the builder, with the output type defined as the given class.
Return
A builder instance with the specified input and output types configured.
Parameters
outputClass
The output class type that the subgraph is expected to handle.