Skip to content

Planner Agent

osa_tool.osa_agent.agents.planner.agent

PlannerAgent

Bases: BaseAgent

Agent responsible for planning the execution workflow.

The PlannerAgent: - selects applicable operations based on the current state - decides which operations should be executed - builds an ordered execution plan - detects and injects additional arguments required by operations

run(state)

Execute the planning phase of the workflow.

This method: 1. Retrieves all applicable operations 2. Uses an LLM to decide which operations to run 3. Builds an ordered task plan 4. Detects and assigns required operation arguments 5. Updates workflow state and session memory

Parameters:

Name Type Description Default
state OSAState

Current workflow state.

required

Returns:

Name Type Description
OSAState OSAState

Updated state containing the execution plan.