Tags: strands-agents/sdk-python
Tags
feat: add cached token metrics support for Amazon Bedrock (#531) * feat: add cached token metrics support for Amazon Bedrock - Add optional cacheReadInputTokens and cacheWriteInputTokens fields to Usage TypedDict - Update EventLoopMetrics to accumulate cached token metrics - Add OpenTelemetry instrumentation for cached token telemetry - Enhance metrics summary display to show cached token information - Maintain 100% backward compatibility with existing Usage objects - Add comprehensive test coverage for cached token functionality Resolves #529 * feat: updated cached read/write input token metrics --------- Co-authored-by: poshinchen <pschen@amazon.com>
fix(event_loop): raise dedicated exception when encountering max toke… ( #576) * fix(event_loop): raise dedicated exception when encountering max tokens stop reason * fix: update integ tests * fix: rename exception message, add to exception, move earlier in cycle * Update tests_integ/test_max_tokens_reached.py Co-authored-by: Nick Clegg <nac542@gmail.com> * Update tests_integ/test_max_tokens_reached.py Co-authored-by: Nick Clegg <nac542@gmail.com> * linting --------- Co-authored-by: Nick Clegg <nac542@gmail.com>
PreviousNext