- Python 3.8+
- Docker
- UV (package manager)
# Clone and setup
git clone <repository>
cd any-agent
uv sync
# Quality checks
ruff format src/ && ruff check src/ --fix && mypy src/
# Run tests
pytest- Detection & Adaptation - Framework detection and adapter generation
- Protocol Layer - A2A, OpenAI-compatible, and custom protocol support
- Containerization - Docker generation with standardized endpoints
url_utils (foundational)
↓
url_builder (consolidated URL construction)
↓
chat_endpoints_generator + unified_ui_routes (specialized generators)
↓
ui_routes_generator (compatibility wrapper) + entrypoint_templates (orchestrator)
- Functions: Use descriptive verb_noun pattern (
extract_metadata,validate_agent) - Variables: Use full words over abbreviations (
description_patternsnotdesc_patterns) - Classes: Prefer singular (
ValidationResultnotValidationResults) - Private methods: Clear purpose in name (
_combine_python_files) - Exception handling: Descriptive variable names (
connection_errornote)
- Type hints required (
disallow_untyped_defs = true) - 88 character line limit
- Always use UV for venv, pip, pytest, ruff, mypy
- Follow project requirements and dependencies
Comprehensive validation tool for A2A protocol compliance:
# Run A2A validation
python -m any_agent.testing.a2a_harness \
--base-url http://localhost:3080 \
--output-format json \
--timeout 30- Agent Card Discovery - Validates
/.well-known/agent-card.json - Client Connection - Tests A2A client initialization
- Basic Message Exchange - Sends test message to agent
- Google ADK: Use
examples/Google_ADK/Testing_Tessie/ - AWS Strands: Use
examples/AWS_Strands/Product_Pete/ - Test Coverage: 381 tests across all modules
# Install dependencies
pip install google-genai google-adk
# Environment variables
export GOOGLE_API_KEY=your_key
export GOOGLE_MODEL=gemini-2.0-flash
# Test agent
python -m any_agent ./examples/Google_ADK/Testing_Tessie/- Create detection patterns in
src/any_agent/core/detection/ - Implement adapter in
src/any_agent/adapters/ - Add test cases and validation
- Update framework support matrix
- Framework Detection: Pattern-based with confidence scoring
- Configurable Adapters: 95% code reduction through configuration
- Context Management: Thread-safe session isolation
- Docker/Localhost Orchestrators: Hot reload, health checks
- URL Builder: Consolidated URL construction
- Context Manager: Framework-specific context strategies
- UI Routes: Unified interface generation
- Template Generator: Docker and FastAPI templates
- Follow code standards and naming conventions
- Add comprehensive tests for new features
- Update documentation for user-facing changes
- Ensure all quality checks pass
- Test across multiple frameworks
- Package Management: UV
- Code Quality: ruff, black, mypy
- Testing: pytest
- UI Development: React + TypeScript + Material-UI + Vite