execute
Executes the AI agent's strategy using the provided context and input.
This method processes the given input data within the specified context, leveraging the AI agent's internal logic and strategy to produce an output. The result of this execution may depend on the graph-based execution pipeline, decision-making processes, and other stateful operations defined in the context.
Return
The output produced by the AI agent's strategy, or null if no output is generated. The output type is defined by the strategy's implementation.
Parameters
The execution context in which the AI agent operates. It provides access to the agent's configuration, pipeline, environment, and other components required for execution in a graph-based structure.
The input data to be processed by the AI agent's strategy. The type of input is defined by the strategy's implementation and is used to derive the resulting output.