structuredOutputWithToolsStrategy

Defines a strategy for handling structured output with tools integration using specified configuration and execution logic.

This strategy facilitates a structured pipeline for generating outputs using tools and large language models (LLMs), enabling transformations between input, intermediate results, and structured output based on the provided configuration and execution behavior.

Parameters

Output

The type of the structured output generated by the strategy.

config

The configuration for structured output processing, specifying schema, providers, and optional error handling mechanisms.


inline fun <Input, Output> structuredOutputWithToolsStrategy(config: StructuredOutputConfig<Output>, parallelTools: Boolean = false, noinline transform: suspend AIAgentGraphContextBase.(input: Input) -> String): AIAgentGraphStrategy<Input, Output>(source)

Defines a strategy for handling structured output with tools integration using specified configuration and execution logic.

This strategy facilitates a structured pipeline for generating outputs using tools and large language models (LLMs), enabling transformations between input, intermediate results, and structured output based on the provided configuration and execution behavior.

Parameters

Input

The type of the input to be processed by the strategy.

Output

The type of the structured output generated by the strategy.

config

The configuration for structured output processing, specifying schema, providers, and optional error handling mechanisms.

transform

A suspendable function that accepts the input of type Input and produces a string output that serves as the input for further processing in the structured output pipeline.