opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentati.../tests
Riccardo Magliocchetti 3d37106115
botocore: handle tool calls with Amazon nova with Bedrock InvokeModel* APIs (#3385)
* botocore: test invokemodel tool calls against amazon nova

* botocore: handle amazon nova tool calls events for InvokeModelWithResponseStream

* Update documentation

* Update Changelog

* Please pylint

* Cleanup

* Reduce branches in tool calls tests

Instead pass down a per-model object that implements the peculiar part.

And fix recording of amazon.nova stream no content test.

* Move stream content extraction for tool calls tests to a couple of helpers
2025-03-31 08:53:15 +00:00
..
cassettes botocore: handle tool calls with Amazon nova with Bedrock InvokeModel* APIs (#3385) 2025-03-31 08:53:15 +00:00
README.md botocore: add bedrock genai user events and lazy initialize tracers and event loggers (#3258) 2025-02-13 10:08:24 +01:00
__init__.py Rename remaining framework packages from "ext" to "instrumentation" (#969) 2020-10-21 21:39:43 -07:00
bedrock_utils.py botocore: add genai metrics for bedrock extensions (#3326) 2025-03-05 09:14:39 +00:00
conftest.py botocore: add genai metrics for bedrock extensions (#3326) 2025-03-05 09:14:39 +00:00
test_botocore_bedrock.py botocore: handle tool calls with Amazon nova with Bedrock InvokeModel* APIs (#3385) 2025-03-31 08:53:15 +00:00
test_botocore_dynamodb.py botocore: add bedrock genai user events and lazy initialize tracers and event loggers (#3258) 2025-02-13 10:08:24 +01:00
test_botocore_instrumentation.py NoOpTracerProvider test case for botocore instrumentation (#3091) 2024-12-11 13:35:50 +00:00
test_botocore_lambda.py botocore: bump moto to latest (#2605) 2024-06-13 16:56:04 -06:00
test_botocore_messaging.py botocore: Add support for SNS publish and publish_batch (#1409) 2022-11-24 16:44:12 +05:30
test_botocore_sns.py botocore: sns set destination name attribute to arn and redact phone number (#3249) 2025-03-10 09:39:12 +00:00
test_botocore_sqs.py botocore: bump moto to latest (#2605) 2024-06-13 16:56:04 -06:00

README.md

Recording calls

If you need to record calls you may need to export authentication variables and the default region as environment variables in order to have the code work properly. Since tox blocks environment variables by default you need to override its configuration to let them pass:

export TOX_OVERRIDE=testenv.pass_env=AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN,AWS_DEFAULT_REGION

We are not adding it to tox.ini because of security concerns.