Skip to main content

portia.planning_agents.default_planning_agent

DefaultPlanningAgent is a single best effort attempt at planning based on the given query + tools.

DefaultPlanningAgent Objects

class DefaultPlanningAgent(BasePlanningAgent)

DefaultPlanningAgent class.

__init__

def __init__(config: Config) -> None

Init with the config.

generate_steps_or_error

def generate_steps_or_error(
ctx: ExecutionContext,
query: str,
tool_list: list[Tool],
examples: list[Plan] | None = None) -> StepsOrError

Generate a plan or error using an LLM from a query and a list of tools.