Skip to content

Commit 7bcc723

Browse files
Formatting nitpicks in messages.py (#255)
1 parent 1831da1 commit 7bcc723

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pydantic_ai_slim/pydantic_ai/messages.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class UserPrompt:
3838

3939
content: str
4040
"""The content of the prompt."""
41+
4142
timestamp: datetime = field(default_factory=_now_utc)
4243
"""The timestamp of the prompt."""
4344

@@ -57,10 +58,13 @@ class ToolReturn:
5758

5859
tool_name: str
5960
"""The name of the "tool" was called."""
61+
6062
content: Any
6163
"""The return value."""
64+
6265
tool_call_id: str | None = None
6366
"""Optional tool call identifier, this is used by some models including OpenAI."""
67+
6468
timestamp: datetime = field(default_factory=_now_utc)
6569
"""The timestamp, when the tool returned."""
6670

@@ -109,10 +113,13 @@ class RetryPrompt:
109113
If the retry was triggered by a [`ValidationError`][pydantic_core.ValidationError], this will be a list of
110114
error details.
111115
"""
116+
112117
tool_name: str | None = None
113118
"""The name of the tool that was called, if any."""
119+
114120
tool_call_id: str | None = None
115121
"""Optional tool call identifier, this is used by some models including OpenAI."""
122+
116123
timestamp: datetime = field(default_factory=_now_utc)
117124
"""The timestamp, when the retry was triggered."""
118125

@@ -164,11 +171,13 @@ class ToolCallPart:
164171

165172
tool_name: str
166173
"""The name of the tool to call."""
174+
167175
args: ArgsJson | ArgsDict
168176
"""The arguments to pass to the tool.
169177
170178
Either as JSON or a Python dictionary depending on how data was returned.
171179
"""
180+
172181
tool_call_id: str | None = None
173182
"""Optional tool call identifier, this is used by some models including OpenAI."""
174183

0 commit comments

Comments
 (0)