nodeSetStructuredOutput
inline fun <TInput, T> AIAgentSubgraphBuilderBase<*, *>.nodeSetStructuredOutput(name: String? = null, config: StructuredOutputConfig<T>): AIAgentNodeDelegate<TInput, TInput>(source)
Creates a node that sets up a structured output for an AI agent subgraph.
The method defines a new node with a configurable structured output schema that will be applied during the AI agent's message processing. The schema is determined by the given configuration.
Return
An instance of AIAgentNodeDelegate representing the constructed node.
Parameters
name
An optional name for the node. If null, a default name will be assigned.
config
The configuration that defines the structured output format and schema.