Python: Add type annotations for AgentRunEvent and AgentRunUpdateEvent data attributes (#2589)

* Add type annotations for AgentRunEvent and AgentRunUpdateEvent data attributes

* Fix unnecessary cast after typing improvement

* Mcp pkg update introduced type change. Fix it.

* update opentelemetry deps to 1.39.0 and use LogRecordExporter for type compatibility
This commit is contained in:
Evan Mattson
2025-12-04 00:40:49 +00:00
committed by GitHub
parent 9c2e800189
commit a597a925cb
7 changed files with 102 additions and 55 deletions
+3 -3
View File
@@ -28,9 +28,9 @@ dependencies = [
"pydantic>=2,<3",
"pydantic-settings>=2,<3",
# telemetry
"opentelemetry-api>=1.24",
"opentelemetry-sdk>=1.24",
"opentelemetry-exporter-otlp-proto-grpc>=1.36.0",
"opentelemetry-api>=1.39.0",
"opentelemetry-sdk>=1.39.0",
"opentelemetry-exporter-otlp-proto-grpc>=1.39.0",
"opentelemetry-semantic-conventions-ai>=0.4.13",
# connectors and functions
"openai>=1.99.0",