cookbook/03_teams/22_metrics/README.md
Examples for team-level metrics: run metrics, streaming metrics, session metrics, and tool call timing.
01_team_metrics.py - Team, session, and member-level execution metrics.02_team_streaming_metrics.py - Capturing metrics from team streaming responses with per-model detail breakdown.03_team_session_metrics.py - Session-level metrics that accumulate across multiple team runs.04_team_tool_metrics.py - Tool execution timing and member-level metrics.05_team_eval_metrics.py - Eval-model metrics from post-hooks (eval_model key in run details).06_loop_team_and_member_metrics.py - Loop the team leader's metrics and each member's metrics, recurse for nested teams, and compute the full run total.direnv allow (including OPENAI_API_KEY)../scripts/demo_setup.sh, then run cookbooks with .venvs/demo/bin/python../cookbook/scripts/run_pgvector.sh)..venvs/demo/bin/python cookbook/03_teams/metrics/<file>.py