functionalStrategy

Configure a functional strategy and continue with a functional service builder.

fun <Input, Output> functionalStrategy(name: String = "funStrategy", strategy: ERROR CLASS: Symbol not found for BiFunction<ai/koog/agents/core/agent/context/AIAgentFunctionalContext, Input, Output>): FunctionalAgentServiceBuilder<Input, Output>(source)

Creates a functional agent service builder using the provided strategy.

This method allows defining a custom functional strategy for the AI agent.

Return

A FunctionalAgentBuilder configured with the specified functional strategy.

Parameters

Input

The type of the input parameter for the strategy's execution logic.

Output

The type of the output returned by the strategy's execution logic.

name

The name identifying the functional strategy. Defaults to "funStrategy".

strategy

The implementation of the functional strategy's execution logic.


Configure a functional strategy and continue with a functional service builder.

Configure a functional strategy and continue with a functional service builder.