execute

open suspend override fun execute(context: AIAgentContextBase, input: Input): Output(source)

Executes the desired operation based on the input and the provided context. This function determines the execution strategy based on the tool selection strategy configured in the class.

Return

The output of the AI agent execution, generated after processing the input.

Parameters

context

The context of the AI agent which includes all necessary resources and metadata for execution.

input

The input object representing the data to be processed by the AI agent.