Repo Analysis Agent¶
osa_tool.osa_agent.agents.repo_analysis.agent
¶
RepoAnalysisAgent
¶
Bases: BaseAgent
Agent responsible for preparing and analyzing the repository.
The RepoAnalysisAgent: - clones and optionally forks the repository - prepares a working branch if required - performs static repository analysis - stores repository metadata and analysis results in the state
run(state)
¶
Prepare the repository and extract structural information.
This method: 1. Ensures the repository is cloned and ready for analysis 2. Runs repository analysis to collect structural and semantic data 3. Updates the workflow state with repository information
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
OSAState
|
Current workflow state. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
OSAState |
OSAState
|
Updated state containing repository analysis results. |