File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
sentry_sdk/integrations/pydantic_ai Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1313
1414# Store the current invoke_agent span in a contextvar for re-entrant safety
1515# Using a list as a stack to support nested agent calls
16- _invoke_agent_span_stack = ContextVar ("pydantic_ai_invoke_agent_span_stack" , default = [])
17- # type: ContextVar[list[dict[str, Any]]]
16+ _invoke_agent_span_stack = ContextVar ("pydantic_ai_invoke_agent_span_stack" , default = []) # type: ContextVar[list[dict[str, Any]]]
1817
1918
2019def push_invoke_agent_span (span , agent , is_streaming = False ):
@@ -101,7 +100,7 @@ def _set_agent_data(span, agent):
101100
102101
103102def _get_model_name (model_obj ):
104- # type: (Any) -> str | None
103+ # type: (Any) -> Optional[ str]
105104 """Extract model name from a model object.
106105
107106 Args:
You can’t perform that action at this time.
0 commit comments