Skip to content

Commit 622a48f

Browse files
docstring
1 parent 396f322 commit 622a48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/pydantic_ai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class PydanticAIIntegration(Integration):
123123
Hooks using the decorators provided by `pydantic_ai.capabilities` create and manage spans for model calls when these hooks are available (newer library versions).
124124
The span is created in `on_request` and stored in the metadata of the `RunContext` object shared with `on_response` and `on_error`.
125125
126-
The metadata on the RunContext instance is initialized with an empty dictionary in `Agent.__init__()`. The dictionary is required for the metadata object
127-
to be a shared reference between hooks.
126+
The metadata on the RunContext instance is initialized with an empty dictionary in `Agent.__init__()` if no metadata dictionary is provided by the user. The dictionary is
127+
required for the metadata object to be a shared reference between hooks.
128128
"""
129129

130130
identifier = "pydantic_ai"

0 commit comments

Comments
 (0)