execute
Executes the main loop for the planner, which involves building and executing plans iteratively until the plan is considered successfully completed or a max number of iterations is reached.
Return
The final state after the execution of the plans.
Parameters
context
AI Agent's context
input
The initial state to be used as the starting point for the execution process.
Throws
If the maximum number of iterations defined in the agent's configuration is exceeded.