strategy

fun strategy(name: String, toolSelectionStrategy: ToolSelectionStrategy = ToolSelectionStrategy.ALL, init: AIAgentStrategyBuilder.() -> Unit): AIAgentStrategy(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