setStructuredOutput
fun <T : Any> setStructuredOutput(config: StructuredRequestConfig<T>): AIAgentNodeBase<Input, Input>(source)
Configures the node to produce a structured output based on the specified configuration.
This method allows setting up structured output behavior for an AI agent node by defining how content should be structured when requests are processed. The structure is determined by the specified StructuredRequestConfig, which provides options for different providers and fallback behaviors.
Return
An instance of AIAgentNodeBase with the input type Input and output type Input, updated with the configured structured output setup.
Parameters
config
The configuration specifying how structured output should be handled, including provider-specific definitions and default fallback options.