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
+5 -1
View File
@@ -58,7 +58,7 @@ class ToolOrganizationContractTests(unittest.TestCase):
request = AssistantUpsert(**data)
self.assertIsNotNone(request.built_in_tools.end_conversation)
response = AssistantOut(id="asst_legacy", **data)
response = AssistantOut(id="asst_realtime", **data)
self.assertIsNotNone(response.built_in_tools.end_conversation)
def test_workflow_camel_case_builtin_config_is_normalized_for_runtime(self):
@@ -247,6 +247,8 @@ class ToolBindingTests(unittest.IsolatedAsyncioTestCase):
type="http",
definition={
"config": {
"allow_interruptions": True,
"execution_mode": "immediate",
"parameters": [
{"name": "order_id", "type": "string", "required": True},
{"name": "tenant", "type": "string", "required": True},
@@ -280,6 +282,8 @@ class ToolBindingTests(unittest.IsolatedAsyncioTestCase):
type="http",
definition={
"config": {
"allow_interruptions": True,
"execution_mode": "immediate",
"parameters": [
{"name": "tenant", "type": "string", "required": True}
]