Agent Graph¶
osa_tool.osa_agent.graph
¶
build_graph(context)
¶
Build and compile the OSA agent execution graph.
The graph defines the full workflow lifecycle, including: - intent routing - repository analysis - task planning - task execution - review and approval - finalization
Transitions between nodes may be conditional based on the current workflow state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
AgentContext
|
Shared execution context for all agents. |
required |
Returns:
| Type | Description |
|---|---|
Any
|
Compiled StateGraph executable for running the workflow. |