strategy

inline fun <Input, Output> strategy(name: String, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, init: AIAgentStrategyBuilder<Input, Output>.() -> Unit): AIAgentStrategy<Input, Output>(source)

Builds a local AI agent that processes user input through a sequence of stages.

The agent executes a series of stages in sequence, with each stage receiving the output of the previous stage as its input.

Parameters

init

Lambda that defines stages and nodes of this agent