feat(api): remove tool_name from ToolResponseMessage

Summary:

Test Plan:
This commit is contained in:
Eric Huang 2025-03-12 19:40:43 -07:00
parent 6bfcb65343
commit 1df513a3de
6 changed files with 8637 additions and 192 deletions

View file

@ -117,13 +117,11 @@ class ToolResponseMessage(BaseModel):
:param role: Must be "tool" to identify this as a tool response
:param call_id: Unique identifier for the tool call this response is for
:param tool_name: Name of the tool that was called
:param content: The response content from the tool
"""
role: Literal["tool"] = "tool"
call_id: str
tool_name: Union[BuiltinTool, str]
content: InterleavedContent