Executor Agent¶
osa_tool.osa_agent.agents.executor.agent
¶
ExecutorAgent
¶
Bases: BaseAgent
Agent responsible for executing planned tasks.
The ExecutorAgent: - iterates over the execution plan - resolves executor dependencies and task arguments - invokes operation executors (function-style or class-style) - updates task statuses and stores execution results - persists artifacts into the shared agent state
run(state)
¶
Execute all pending tasks in the current plan.
Tasks are executed sequentially in plan order. Each task: - transitions through PENDING → IN_PROGRESS → COMPLETED / FAILED - stores its execution result in both the task and state artifacts
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
OSAState
|
Current workflow state containing the execution plan. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
OSAState |
OSAState
|
Updated state with executed tasks and collected artifacts. |