Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/sdk-conformance.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ do not sanitize raw OpenTelemetry events or arbitrary attributes.
| C22 | Streaming truncation: `telemetry.dev.capture.truncated = true` survives OTLP transport and ingest on the streamed generation |
| C23 | Captured JSON matches an independently specified JSON.stringify byte sequence, including number spelling, key ordering, non-finite values and Unicode |
| C24 | Advisor model and native counters survive transport and storage without changing executor usage or rollup totals; provider extraction is covered in the integration packages' tests |
| C25 | Offered tool names in `gen_ai.tool.definitions` are stored byte-for-byte with input capture off, and the tool description is not; the Anthropic integration tests cover building them from request tools |
| C25 | Offered tool names in `gen_ai.tool.definitions` are stored byte-for-byte with input capture off; the description and schema, in the input or in the raw attribute, are not; the Anthropic integration tests cover building them from request tools |
| C26 | Prompt spans: `prompted-call` and `prompted-private` carry `td.prompt.name` `support/reply`, `td.prompt.version` 12 (integer) and `td.prompt.label` `production`; only `prompted-call` carries `td.prompt.variables` `{"customer":"Ada"}`. `prompted-big` (C26b) carries the variables `customer` `Ada` and `history` of 40,000 🤖, past the old 65,536-unit default cap, whole |

## Modality publication gate
Expand Down
2 changes: 1 addition & 1 deletion sdks/python-anthropic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"anthropic>=0.116,<3",
]

Expand Down
2 changes: 1 addition & 1 deletion sdks/python-bedrock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"boto3>=1.36",
]

Expand Down
2 changes: 1 addition & 1 deletion sdks/python-google-genai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"google-genai>=2,<3",
]

Expand Down
2 changes: 1 addition & 1 deletion sdks/python-litellm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"litellm>=1.90.2,<2.0",
"opentelemetry-api>=1.39.0,<2",
]
Expand Down
2 changes: 1 addition & 1 deletion sdks/python-openai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"openai>=2,<4",
]

Expand Down
2 changes: 1 addition & 1 deletion sdks/python-openrouter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"telemetry-dev>=0.3.0",
"telemetry-dev>=0.3.9",
"openrouter>=1.1.0,<2",
]

Expand Down
19 changes: 15 additions & 4 deletions sdks/python/tests/e2e_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ def main() -> int:
"anthropic.advisor.usage.cache_creation_input_tokens": 13,
},
).end()
# C25: offered tool names are kept with input capture off; the description is not.
# C25: offered tool names are kept with input capture off; descriptions and schemas,
# in the input or in the raw attribute, are not.
start_span(
"tool-offer",
type="generation",
Expand All @@ -260,9 +261,19 @@ def main() -> int:
},
capture_input=False,
attributes={
"gen_ai.tool.definitions": (
'[{"type":"function","name":"issue_refund"},'
'{"type":"web_search_20250305","name":"web_search"}]'
"gen_ai.tool.definitions": json.dumps(
[
{
"type": "function",
"name": "issue_refund",
"description": "PRIVATE_TOOL_DESCRIPTION",
"parameters": {
"type": "object",
"properties": {"PRIVATE_TOOL_SCHEMA": {}},
},
},
{"type": "web_search_20250305", "name": "web_search"},
]
),
},
).end()
Expand Down
Loading