refactor: remove legacy assistant compatibility

This commit is contained in:
Xin Wang
2026-08-18 10:07:18 +08:00
parent abfcd4cd19
commit d003ee77a5
40 changed files with 505 additions and 729 deletions
+20 -4
View File
@@ -335,7 +335,16 @@ class PromptRealtimeToolControllerTests(unittest.IsolatedAsyncioTestCase):
name="显示拍照按钮",
function_name="set_photo_button_visible",
type="client",
definition={"type": "client", "config": {"parameters": []}},
definition={
"type": "client",
"config": {
"allow_interruptions": True,
"execution_mode": "async",
"wait_for_response": True,
"response_wait_mode": "timeout",
"parameters": [],
},
},
)
],
tool_bindings=[RuntimeToolBinding(tool_id="tool_photo")],
@@ -502,13 +511,20 @@ class PromptRealtimeCapabilityTests(unittest.TestCase):
"qwen-audio-realtime",
tools=[
RuntimeTool(
id="legacy",
name="旧外部工具",
id="reserved_name_tool",
name="保留名冲突工具",
function_name="end_conversation",
type="http",
definition={
"type": "http",
"config": {
"allow_interruptions": True,
"execution_mode": "immediate",
},
},
)
],
tool_bindings=[RuntimeToolBinding(tool_id="legacy")],
tool_bindings=[RuntimeToolBinding(tool_id="reserved_name_tool")],
)
)