Skip to content

test: add integration test for Anthropic streaming metrics (issue #5444)#7538

Draft
Mustafa-Esoofally wants to merge 1 commit intomainfrom
test/anthropic-streaming-metrics-issue-5444
Draft

test: add integration test for Anthropic streaming metrics (issue #5444)#7538
Mustafa-Esoofally wants to merge 1 commit intomainfrom
test/anthropic-streaming-metrics-issue-5444

Conversation

@Mustafa-Esoofally
Copy link
Copy Markdown
Contributor

Summary

Adds libs/agno/tests/integration/agent/test_anthropic_streaming_metrics.py — an integration test that exercises the Anthropic streaming path to catch the metrics-accounting bug reported in issue #5444.

Why

Issue #5444 flagged that streaming runs against Anthropic models sometimes reported inconsistent token metrics. A standing integration test prevents regression once the fix lands.

Test plan

  • Run against a real Anthropic API key: pytest libs/agno/tests/integration/agent/test_anthropic_streaming_metrics.py
  • Confirm metrics match the non-streaming path for the same prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant