refactor: remove legacy assistant compatibility
This commit is contained in:
@@ -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")],
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user