wads.agents

Wads AI Agents

Autonomous agents for diagnosing and fixing common development issues.

Available Agents:

  • ci_debug_agent: Analyzes failed CI runs and proposes fixes

  • dependency_resolver: Analyzes import errors and missing dependencies

  • test_analyzer: Analyzes pytest failures and categorizes them

Functions

diagnose_ci_failure(repo[, run_id])

Diagnose a CI failure.

analyze_dependencies(project_path[, ...])

Analyze project dependencies and identify issues.

parse_pytest_output(output)

Parse pytest output and analyze failures.

Classes

CIDiagnosis(failures, missing_system_deps, ...)

Result of CI failure diagnosis.

TestFailure(test_name, error_type, ...[, ...])

Represents a single test failure.

DependencyReport(missing_packages, ...)

Result of dependency analysis.

DependencyIssue(package_name, import_statement)

Represents a missing or problematic dependency.

TestAnalysisReport(total_failures, ...)

Result of test failure analysis.

TestFailurePattern(pattern_type, count, ...)

Represents a pattern of test failures.

class wads.agents.CIDiagnosis(failures, missing_system_deps, missing_python_deps, config_issues, proposed_fixes, confidence, warnings=None)[source]

Bases: object

Result of CI failure diagnosis.

class wads.agents.DependencyIssue(package_name, import_statement, file_path=None, line_number=None, suggested_package=None, error_message=None, is_installed=False)[source]

Bases: object

Represents a missing or problematic dependency.

class wads.agents.DependencyReport(missing_packages, unused_packages, version_conflicts, recommendations)[source]

Bases: object

Result of dependency analysis.

class wads.agents.TestAnalysisReport(total_failures, total_errors, failure_patterns, flaky_tests, slow_tests, recommendations)[source]

Bases: object

Result of test failure analysis.

class wads.agents.TestFailure(test_name, error_type, error_message, traceback, file_path=None, line_number=None)[source]

Bases: object

Represents a single test failure.

class wads.agents.TestFailurePattern(pattern_type, count, examples, suggested_fix, severity)[source]

Bases: object

Represents a pattern of test failures.

wads.agents.analyze_dependencies(project_path, error_logs=None, check_unused=True)[source]

Analyze project dependencies and identify issues.

Parameters:
  • project_path (str | Path) – Path to project directory

  • error_logs (Optional[str]) – Optional error logs to parse

  • check_unused (bool) – Whether to check for unused dependencies

Return type:

DependencyReport

Returns:

DependencyReport with analysis results

wads.agents.diagnose_ci_failure(repo, run_id=None)[source]

Diagnose a CI failure.

Parameters:
  • repo (str) – Repository in format ‘owner/name’

  • run_id (Optional[int]) – Specific run ID, or None for latest failed run

Return type:

CIDiagnosis

Returns:

CIDiagnosis with analysis results

wads.agents.parse_pytest_output(output)[source]

Parse pytest output and analyze failures.

Parameters:

output (str) – Pytest output text

Return type:

TestAnalysisReport

Returns:

TestAnalysisReport with analysis

Modules

ci_debug_agent

CI Debugging Agent for Wads

dependency_resolver

Dependency Resolver Agent

test_analyzer

Test Failure Analyzer Agent