SimpleLLMWithCriticPlanner

A simple planning strategy that uses LLM requests to build and execute a plan. It operates on a String state, meaning it would accept an initial state string and then return the final state string as a result. It is limited to string-only operations and does not perform tool calling or other advanced logic.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun execute(context: AIAgentFunctionalContext, input: String): String

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.