Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MervinPraison/PraisonAI
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: MervinPraison/PraisonAI
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: monitoring-examples-20250724
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 11 files changed
  • 4 contributors

Commits on Jul 24, 2025

  1. feat: implement comprehensive monitoring system for PraisonAI Agents

    Implements all monitoring features requested in issue #970:
    
    • TokenMetrics class with granular token tracking (input, output, audio, cached, reasoning tokens)
    • PerformanceMetrics class with TTFT and response time tracking
    • MetricsCollector for session-level aggregation by agent and model
    • Enhanced Agent class with optional track_metrics and metrics_collector parameters
    • Extended telemetry system with detailed token and performance tracking
    • Full backward compatibility maintained - no existing functionality changed
    
    Key Features:
    - Automatic token extraction from LLM responses with aggregation support
    - TTFT measurement for streaming and non-streaming responses
    - Session-level metrics collection and JSON export capabilities
    - Privacy-first telemetry integration with opt-out support
    - Comprehensive test suite validates all functionality
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
    github-actions[bot] and MervinPraison committed Jul 24, 2025
    Configuration menu
    Copy the full SHA
    031922f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    590c128 View commit details
    Browse the repository at this point in the history
  3. feat: add comprehensive monitoring examples for PraisonAI Agents

    Add monitoring example files demonstrating various aspects of agent monitoring:
    - Basic monitoring with simple agent monitoring and task timing metrics
    - Advanced comprehensive session monitoring capabilities
    - Integration examples for monitoring integrations
    - Telemetry integration examples
    - Documentation with usage examples and best practices
    
    These examples provide developers with practical implementations for monitoring
    PraisonAI agents in production environments.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    github-actions[bot] and claude committed Jul 24, 2025
    Configuration menu
    Copy the full SHA
    75ddbc2 View commit details
    Browse the repository at this point in the history
Loading