Skip to content

Conversation

@mmabrouk
Copy link
Member

@mmabrouk mmabrouk commented Jan 26, 2026

Summary

Adds automated daily trace generation for the demo account to keep observability data fresh.

Changes

  • 204 test queries (queries.json) covering all Agenta features: prompts, evaluation, observability, SDK, API, deployment, etc.
  • Updated test_traces.py script with:
    • Random query selection from pool
    • --count N flag to control number of traces
    • --list flag to see all available queries
  • GitHub Action (.github/workflows/05-demo-traces.yml) that:
    • Runs twice daily at 9am and 4pm UTC
    • Generates 12 random traces per run
    • Can be triggered manually with custom count
  • Fixed LiteLLM instrumentation to use ag.callbacks.litellm_handler() for proper token/cost tracking

Secrets Required

The following secrets have been added to the repo:

  • DEMO_AGENTA_API_KEY
  • DEMO_OPENAI_API_KEY
  • DEMO_QDRANT_URL
  • DEMO_QDRANT_API_KEY

Testing

cd examples/python/RAG_QA_chatbot
source .venv/bin/activate
python scripts/test_traces.py --count 2  # generates 2 traces

Open with Devin

- Update agenta SDK requirement to >=0.80.0 (requires Python 3.11+)
- Change app_slug from 'query-prompt' to 'support-rag-prompt'
- Update uv.lock with new dependencies
- Add 204 test queries covering all Agenta features (queries.json)
- Add test_traces.py script with random query selection
- Add GitHub Action to generate 12 traces twice daily (9am & 4pm UTC)
- Fix LiteLLM instrumentation to use ag.callbacks.litellm_handler()
  for proper token/cost tracking in traces
@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jan 26, 2026 2:47pm

Request Review

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 26, 2026
…ain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review


- name: Generate traces
env:
AGENTA_API_KEY: ${{ secrets.DEMO_AGENTA_API_KEY }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jp-agenta here are the added vars and env vars. For context (not to remove them by mistake when restructuring0

@bekossy bekossy changed the base branch from main to release/v0.81.1 January 29, 2026 10:30
@bekossy bekossy merged commit 42dcfcd into release/v0.81.1 Jan 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend ci/cd feature size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants