run
Executes the defined task within the configured context and returns the output. The method handles different output options (OutputOption.ByClass and OutputOption.ByFinishTool) and executes subtasks using the provided input, tools, and configuration parameters.
Return
The result of the subtask execution, which is of type Output.