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

@ -4347,24 +4347,6 @@
"type": "string",
"description": "Unique identifier for the tool call this response is for"
},
"tool_name": {
"oneOf": [
{
"type": "string",
"enum": [
"brave_search",
"wolfram_alpha",
"photogen",
"code_interpreter"
],
"title": "BuiltinTool"
},
{
"type": "string"
}
],
"description": "Name of the tool that was called"
},
"content": {
"$ref": "#/components/schemas/InterleavedContent",
"description": "The response content from the tool"
@ -4374,7 +4356,6 @@
"required": [
"role",
"call_id",
"tool_name",
"content"
],
"title": "ToolResponseMessage",
@ -4673,12 +4654,22 @@
"CompletionResponse": {
"type": "object",
"properties": {
<<<<<<< dest: ed6caead724a - ehhuang: chore: simplify _get_tool_defs (#1384)
"metrics": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MetricInResponse"
}
},
||||||| base: 1311faf3f5e7 - ehhuang: fix: logging (#1598)
=======
"metrics": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MetricEvent"
}
},
>>>>>>> source: ad32270ad0d5 - erichuang: feat(api): remove tool_name from To...
"content": {
"type": "string",
"description": "The generated completion text"
@ -5046,12 +5037,22 @@
"CompletionResponseStreamChunk": {
"type": "object",
"properties": {
<<<<<<< dest: ed6caead724a - ehhuang: chore: simplify _get_tool_defs (#1384)
"metrics": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MetricInResponse"
}
},
||||||| base: 1311faf3f5e7 - ehhuang: fix: logging (#1598)
=======
"metrics": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MetricEvent"
}
},
>>>>>>> source: ad32270ad0d5 - erichuang: feat(api): remove tool_name from To...
"delta": {
"type": "string",
"description": "New content generated since last chunk. This can be one or more tokens."