Skip to content

Agent State

osa_tool.osa_agent.state

OSAState

Bases: BaseModel

Mutable workflow state shared by all agents in the OSA graph.

get_task(task_id)

Return a task from the plan by its id.

Parameters:

Name Type Description Default
task_id str

The task identifier (typically the operation name).

required

Returns:

Type Description
Optional[Task]

The matching Task, or None if not found.