@@ -56,6 +56,7 @@ class TrackedToolCallView(BaseModel):
5656
5757 tool_call_id : str
5858 title : str | None
59+ name : str | None
5960 kind : ToolKind | None
6061 status : ToolCallStatus | None
6162 content : tuple [Any , ...] | None
@@ -70,6 +71,7 @@ def __init__(
7071 * ,
7172 tool_call_id : str ,
7273 title : str | None = None ,
74+ name : str | None = None ,
7375 kind : ToolKind | None = None ,
7476 status : ToolCallStatus | None = None ,
7577 content : Sequence [Any ] | None = None ,
@@ -79,6 +81,7 @@ def __init__(
7981 ) -> None :
8082 self .tool_call_id = tool_call_id
8183 self .title = title
84+ self .name = name
8285 self .kind = kind
8386 self .status = status
8487 self .content = _copy_model_list (content )
@@ -91,6 +94,7 @@ def to_view(self) -> TrackedToolCallView:
9194 return TrackedToolCallView (
9295 tool_call_id = self .tool_call_id ,
9396 title = self .title ,
97+ name = self .name ,
9498 kind = self .kind ,
9599 status = self .status ,
96100 content = tuple (item .model_copy (deep = True ) for item in self .content ) if self .content else None ,
@@ -103,6 +107,7 @@ def to_tool_call_model(self) -> ToolCallUpdate:
103107 return ToolCallUpdate (
104108 tool_call_id = self .tool_call_id ,
105109 title = self .title ,
110+ name = self .name ,
106111 kind = self .kind ,
107112 status = self .status ,
108113 content = _copy_model_list (self .content ),
@@ -118,6 +123,7 @@ def to_start_model(self) -> ToolCallStart:
118123 session_update = "tool_call" ,
119124 tool_call_id = self .tool_call_id ,
120125 title = self .title ,
126+ name = self .name ,
121127 kind = self .kind ,
122128 status = self .status ,
123129 content = _copy_model_list (self .content ),
@@ -130,6 +136,7 @@ def update(
130136 self ,
131137 * ,
132138 title : Any = UNSET ,
139+ name : Any = UNSET ,
133140 kind : Any = UNSET ,
134141 status : Any = UNSET ,
135142 content : Any = UNSET ,
@@ -141,6 +148,9 @@ def update(
141148 if title is not UNSET :
142149 self .title = cast (str | None , title )
143150 kwargs ["title" ] = self .title
151+ if name is not UNSET :
152+ self .name = cast (str | None , name )
153+ kwargs ["name" ] = self .name
144154 if kind is not UNSET :
145155 self .kind = cast (ToolKind | None , kind )
146156 kwargs ["kind" ] = self .kind
@@ -190,6 +200,7 @@ def start(
190200 external_id : str ,
191201 * ,
192202 title : str ,
203+ name : str | None = None ,
193204 kind : ToolKind | None = None ,
194205 status : ToolCallStatus | None = "in_progress" ,
195206 content : Sequence [Any ] | None = None ,
@@ -202,6 +213,7 @@ def start(
202213 state = _TrackedToolCall (
203214 tool_call_id = call_id ,
204215 title = title ,
216+ name = name ,
205217 kind = kind ,
206218 status = status ,
207219 content = content ,
@@ -217,6 +229,7 @@ def progress(
217229 external_id : str ,
218230 * ,
219231 title : Any = UNSET ,
232+ name : Any = UNSET ,
220233 kind : Any = UNSET ,
221234 status : Any = UNSET ,
222235 content : Any = UNSET ,
@@ -228,6 +241,7 @@ def progress(
228241 state = self ._require_call (external_id )
229242 return state .update (
230243 title = title ,
244+ name = name ,
231245 kind = kind ,
232246 status = status ,
233247 content = content ,
0 commit comments