Skip to content
Draft
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
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ ignore_missing_imports = true
module = "anthropic.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "claude_agent_sdk.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "sanic.*"
ignore_missing_imports = true
Expand Down
7 changes: 7 additions & 0 deletions scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@
},
"num_versions": 2,
},
"claude_agent_sdk": {
"package": "claude-agent-sdk",
"deps": {
"*": ["pytest-asyncio"],
},
"python": ">=3.10",
},
"clickhouse_driver": {
"package": "clickhouse-driver",
"num_versions": 2,
Expand Down
1 change: 1 addition & 0 deletions scripts/split_tox_gh_actions/split_tox_gh_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"fastmcp",
],
"Agents": [
"claude_agent_sdk",
"openai_agents",
"pydantic_ai",
],
Expand Down
12 changes: 12 additions & 0 deletions sentry_sdk/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ class SPANDATA:
Example: "ResearchAssistant"
"""

GEN_AI_CONVERSATION_ID = "gen_ai.conversation.id"
"""
The session or conversation ID for tracking conversations across requests.
Example: "session_abc123"
"""

GEN_AI_CHOICE = "gen_ai.choice"
"""
The model's response message.
Expand Down Expand Up @@ -548,6 +554,12 @@ class SPANDATA:
Example: [{role: "system", "content: "Generate a random number."}, {"role": "user", "content": [{"text": "Generate a random number between 0 and 10.", "type": "text"}]}]
"""

GEN_AI_REQUEST_SYSTEM = "gen_ai.request.system"
"""
The system prompt passed to the model, separate from user messages.
Example: "You are a helpful assistant that specializes in math calculations."
"""

GEN_AI_REQUEST_MODEL = "gen_ai.request.model"
"""
The model identifier being used for the request.
Expand Down
2 changes: 2 additions & 0 deletions sentry_sdk/integrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def iter_default_integrations(
_AUTO_ENABLING_INTEGRATIONS = [
"sentry_sdk.integrations.aiohttp.AioHttpIntegration",
"sentry_sdk.integrations.anthropic.AnthropicIntegration",
"sentry_sdk.integrations.claude_agent_sdk.ClaudeAgentSDKIntegration",
"sentry_sdk.integrations.ariadne.AriadneIntegration",
"sentry_sdk.integrations.arq.ArqIntegration",
"sentry_sdk.integrations.asyncpg.AsyncPGIntegration",
Expand Down Expand Up @@ -127,6 +128,7 @@ def iter_default_integrations(
"celery": (4, 4, 7),
"chalice": (1, 16, 0),
"clickhouse_driver": (0, 2, 0),
"claude_agent_sdk": (0, 1, 0),
"cohere": (5, 4, 0),
"django": (1, 8),
"dramatiq": (1, 9),
Expand Down
Loading