@@ -38,6 +38,7 @@ class UserPrompt:
38
38
39
39
content : str
40
40
"""The content of the prompt."""
41
+
41
42
timestamp : datetime = field (default_factory = _now_utc )
42
43
"""The timestamp of the prompt."""
43
44
@@ -57,10 +58,13 @@ class ToolReturn:
57
58
58
59
tool_name : str
59
60
"""The name of the "tool" was called."""
61
+
60
62
content : Any
61
63
"""The return value."""
64
+
62
65
tool_call_id : str | None = None
63
66
"""Optional tool call identifier, this is used by some models including OpenAI."""
67
+
64
68
timestamp : datetime = field (default_factory = _now_utc )
65
69
"""The timestamp, when the tool returned."""
66
70
@@ -109,10 +113,13 @@ class RetryPrompt:
109
113
If the retry was triggered by a [`ValidationError`][pydantic_core.ValidationError], this will be a list of
110
114
error details.
111
115
"""
116
+
112
117
tool_name : str | None = None
113
118
"""The name of the tool that was called, if any."""
119
+
114
120
tool_call_id : str | None = None
115
121
"""Optional tool call identifier, this is used by some models including OpenAI."""
122
+
116
123
timestamp : datetime = field (default_factory = _now_utc )
117
124
"""The timestamp, when the retry was triggered."""
118
125
@@ -164,11 +171,13 @@ class ToolCallPart:
164
171
165
172
tool_name : str
166
173
"""The name of the tool to call."""
174
+
167
175
args : ArgsJson | ArgsDict
168
176
"""The arguments to pass to the tool.
169
177
170
178
Either as JSON or a Python dictionary depending on how data was returned.
171
179
"""
180
+
172
181
tool_call_id : str | None = None
173
182
"""Optional tool call identifier, this is used by some models including OpenAI."""
174
183
0 commit comments