Catalog PyPI
Back to packageRELEASE DETAILS

1.4.1

PyPI

agentops-ai

AI-powered development platform: Multi-agent system for requirements discovery, conversational document building, and test automation

aiautomationbuilder-platformcanvas-uxchatgpt-stylecode-analysisconversational-aidocument-buildinghuman-in-the-loopmulti-agentopenaipytestqaquality-assurancerequirementsrequirements-discovery
All keywords (21)
requirements-traceabilitystreamlittest-automationtest-generationtesting
Published17 Jul 2025
Direct dependencies26
Transitive dependenciesNot calculated

README

Version 1.4.1 documentation

AgentOps: AI-Powered Requirements-Driven Test Automation

PyPI version Python 3.8+ License: MIT

AgentOps is a next-generation, AI-powered development platform that automatically generates requirements and tests from your codebase. Using advanced multi-agent AI systems, AgentOps bridges the gap between technical implementation and business requirements through bidirectional analysis.

🚀 Quick Start

Installation

# Install from PyPI
pip install agentops-ai

# Or install from source
git clone https://github.com/knaig/agentops_ai.git
cd agentops_ai
pip install -e .

Basic Usage

# 1. Initialize your project
agentops init

# 2. Run complete analysis on your code
agentops runner myfile.py

# 3. Check results and status
agentops status

# 4. View traceability matrix
agentops traceability

That's it! AgentOps will automatically:

  • ✅ Analyze your code structure
  • ✅ Generate business-focused requirements
  • ✅ Create comprehensive test cases
  • ✅ Execute tests and provide results
  • ✅ Generate traceability matrices

📋 Available Commands

CommandDescriptionExample
agentops initInitialize project structureagentops init
agentops runner <file>Complete workflow executionagentops runner src/main.py
agentops tests <file>Generate test suitesagentops tests src/main.py
agentops analyze <file>Deep requirements analysisagentops analyze src/main.py
agentops statusCheck project statusagentops status
agentops traceabilityGenerate traceability matrixagentops traceability
agentops onboardingInteractive setup guideagentops onboarding
agentops versionShow version informationagentops version
agentops helpShow detailed helpagentops help

🚀 Power User Options

OptionDescriptionExample
--allProcess all Python filesagentops runner --all
--auto-approveSkip manual reviewagentops runner myfile.py --auto-approve
-v, --verboseDetailed outputagentops runner myfile.py -v

Combined Usage:

# Batch process entire project with automation
agentops runner --all --auto-approve -v

# Generate tests for all files
agentops tests --all --auto-approve

# Detailed analysis with verbose output
agentops analyze myfile.py -v

🎯 Enhanced CLI Experience

Interactive Onboarding

New users can get started quickly with the interactive onboarding:

agentops onboarding

This will:

  • ✅ Check your installation and API key setup
  • ✅ Create sample files for demonstration
  • ✅ Run a complete demo workflow
  • ✅ Show you all available commands and options
  • ✅ Guide you through next steps

Batch Processing

Process your entire project with a single command:

# Analyze all Python files in your project
agentops runner --all

# Generate tests for all files
agentops tests --all

# With automation and verbose output
agentops runner --all --auto-approve -v

CI/CD Integration

Perfect for automated workflows:

# Fully automated analysis
agentops runner --all --auto-approve

# Check project status
agentops status -v

🔧 Configuration

Environment Setup

Create a .env file in your project root:

# Required: OpenAI API Key
OPENAI_API_KEY=your_openai_api_key_here

# Optional: Custom settings
AGENTOPS_OUTPUT_DIR=.agentops
AGENTOPS_LOG_LEVEL=INFO

API Key Validation

Validate your API keys before running:

# Run the validation script
./scripts/validate_api_keys.sh

📁 Generated Artifacts

After running AgentOps, you'll find these artifacts in your project:

.agentops/
├── requirements/
│   ├── requirements.gherkin    # Requirements in Gherkin format
│   └── requirements.md         # Requirements in Markdown format
├── tests/
│   ├── test_main.py           # Generated test files
│   └── test_coverage.xml      # Test coverage reports
├── traceability/
│   └── traceability_matrix.md # Requirements-to-tests mapping
└── reports/
    └── analysis_report.json   # Detailed analysis results

🎯 Key Features

🤖 Multi-Agent AI System

  • Code Analyzer: Deep code structure and dependency analysis
  • Requirements Engineer: Business-focused requirement extraction
  • Test Architect: Comprehensive test strategy design
  • Test Generator: High-quality, maintainable test code
  • Quality Assurance: Automated test validation and scoring

📊 Requirements-Driven Testing

  • Bidirectional Analysis: Code → Requirements → Tests
  • Business Context: Requirements focus on real-world value
  • Traceability: Complete mapping from requirements to tests
  • Multiple Formats: Gherkin (BDD) and Markdown outputs

🔄 Streamlined Workflow

  • Single Command: agentops runner does everything
  • Automatic Export: Requirements and traceability always up-to-date
  • Error Recovery: Robust handling of common issues
  • Progress Tracking: Real-time status updates

📖 Examples

Basic Python File Analysis

# myfile.py
def calculate_total(items, tax_rate=0.1):
    """Calculate total with tax for a list of items."""
    subtotal = sum(items)
    tax = subtotal * tax_rate
    return subtotal + tax

def apply_discount(total, discount_percent):
    """Apply percentage discount to total."""
    discount = total * (discount_percent / 100)
    return total - discount
# Run analysis
agentops runner myfile.py

Generated Requirements (Gherkin):

Feature: Shopping Cart Calculations

Scenario: Calculate total with tax
  Given a list of items with prices [10, 20, 30]
  And a tax rate of 10%
  When I calculate the total
  Then the result should be 66.0

Scenario: Apply discount to total
  Given a total amount of 100
  And a discount of 15%
  When I apply the discount
  Then the final amount should be 85.0

Generated Tests:

def test_calculate_total_with_tax():
    items = [10, 20, 30]
    result = calculate_total(items, tax_rate=0.1)
    assert result == 66.0

def test_apply_discount():
    result = apply_discount(100, 15)
    assert result == 85.0

🛠️ Advanced Usage

Custom Configuration

# agentops_ai/agentops_core/config.py
LLM_MODEL = "gpt-4"
LLM_TEMPERATURE = 0.1
OUTPUT_DIR = ".agentops"
LOG_LEVEL = "INFO"

Python API

from agentops_ai.agentops_core.orchestrator import AgentOrchestrator

# Create orchestrator
orchestrator = AgentOrchestrator()

# Run analysis
result = orchestrator.run_workflow("myfile.py")

# Access results
print(f"Requirements: {len(result.requirements)}")
print(f"Tests generated: {len(result.test_code)} lines")
print(f"Quality score: {result.quality_score}")

🔍 Troubleshooting

Common Issues

API Key Errors:

# Set your OpenAI API key
export OPENAI_API_KEY="your-key-here"

Permission Errors:

# Ensure write permissions
chmod 755 .agentops/

Import Errors:

# Reinstall dependencies
pip install -r requirements.txt

Getting Help

# Show detailed help
agentops help

# Check version
agentops version

# Validate setup
agentops status

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support


AgentOps: Bridging technical implementation and business requirements through AI-powered analysis. 🚀

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 27

Native requirements
26 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
click
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
click>=8.1.3runtime
rich
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
rich>=13.3.5runtime
openai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
openai>=1.0.0runtime
python-dotenv
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
python-dotenv>=1.1.0runtime
langchain_openai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
langchain_openai>=0.0.1runtime
fastapi
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
fastapi>=0.100.0runtime
uvicorn
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
uvicorn>=0.23.0runtime
pandas
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pandas>=1.5.0runtime
jinja2
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
jinja2>=3.1.0runtime
markdown
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
markdown>=3.4.0runtime
sqlalchemy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sqlalchemy>=1.4.0runtime
pytest
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7.0.0runtime
weasyprint
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
weasyprint>=65.0runtime
python-docx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
python-docx>=1.2.0runtime
streamlit
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
streamlit>=1.28.0runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pydantic>=2.0.0runtime
typing-extensions
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
typing-extensions>=4.0.0runtime
questionary
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
questionary>=2.0.0runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest>=8.3.5; extra == "dev"runtime
pytest-json-report
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest-json-report>=1.5.0; extra == "dev"runtime
coverage
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
coverage>=7.8.2; extra == "dev"runtime
pydoc-markdown
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pydoc-markdown>=4.7.0; extra == "dev"runtime
mkdocs-material
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
mkdocs-material>=9.4.0; extra == "dev"runtime
mkdocs
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
mkdocs>=1.5.0; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
ruff>=0.1.0; extra == "dev"runtime
black
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
black>=23.0.0; extra == "dev"runtime
pydocstyle
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pydocstyle>=6.3.0; extra == "dev"runtime

Distribution files

2 collected
agentops_ai-1.4.1-py3-none-any.whl

bdist_wheel · 220.61 KB · Python py3

Source file
agentops_ai-1.4.1.tar.gz

sdist · 193.79 KB · Python source

Source file

Repository

PENDING
knaig/agentops_ai

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3cda07e5b37222456463258bcc778cbf6591dcf03cd557100085605410125e48

Other collected versions

View all collected versions →