From 1f7c48b3e7b43452e1a58c984beca0ee9c2baea4 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Tue, 24 Dec 2024 01:20:18 +0800 Subject: [PATCH] fix: fix demo manifest & property --- agents/examples/default/manifest.json | 5 ++ agents/examples/demo/manifest.json | 55 +++++++++++++++++++ agents/examples/demo/property.json | 2 +- .../extension/coze_python_async/BUILD.gn | 2 - .../extension/gemini_v2v_python/manifest.json | 39 +++++++------ 5 files changed, 83 insertions(+), 20 deletions(-) diff --git a/agents/examples/default/manifest.json b/agents/examples/default/manifest.json index 573d35ec..bc424d45 100644 --- a/agents/examples/default/manifest.json +++ b/agents/examples/default/manifest.json @@ -132,6 +132,11 @@ "type": "extension", "name": "gemini_v2v_python", "version": "=0.1.0" + }, + { + "type": "extension", + "name": "coze_python_async", + "version": "=0.1.0" } ] } \ No newline at end of file diff --git a/agents/examples/demo/manifest.json b/agents/examples/demo/manifest.json index 72e3c356..2d19132c 100644 --- a/agents/examples/demo/manifest.json +++ b/agents/examples/demo/manifest.json @@ -37,6 +37,61 @@ "type": "extension", "name": "agora_rtm", "version": "=0.5.1" + }, + { + "type": "extension", + "name": "dify_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "gemini_v2v_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "openai_chatgpt_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "bingsearch_tool_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "vision_tool_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "weatherapi_tool_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "interrupt_detector_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "openai_v2v_python", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "message_collector", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "coze_python_async", + "version": "=0.1.0" + }, + { + "type": "extension", + "name": "fish_audio_tts", + "version": "=0.1.0" } ] } \ No newline at end of file diff --git a/agents/examples/demo/property.json b/agents/examples/demo/property.json index 11e003a5..e31c3128 100644 --- a/agents/examples/demo/property.json +++ b/agents/examples/demo/property.json @@ -798,7 +798,7 @@ { "type": "extension", "name": "interrupt_detector", - "addon": "interrupt_detector", + "addon": "interrupt_detector_python", "extension_group": "default" }, { diff --git a/agents/ten_packages/extension/coze_python_async/BUILD.gn b/agents/ten_packages/extension/coze_python_async/BUILD.gn index 05054fcf..dafb851d 100644 --- a/agents/ten_packages/extension/coze_python_async/BUILD.gn +++ b/agents/ten_packages/extension/coze_python_async/BUILD.gn @@ -12,9 +12,7 @@ ten_package("coze_python_async") { "__init__.py", "addon.py", "extension.py", - "log.py", "manifest.json", "property.json", - "tests", ] } diff --git a/agents/ten_packages/extension/gemini_v2v_python/manifest.json b/agents/ten_packages/extension/gemini_v2v_python/manifest.json index 5aee0c29..e8d4f6a0 100644 --- a/agents/ten_packages/extension/gemini_v2v_python/manifest.json +++ b/agents/ten_packages/extension/gemini_v2v_python/manifest.json @@ -110,25 +110,30 @@ { "name": "tool_register", "property": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "parameters": { - "type": "array", - "items": { - "type": "object", - "properties": {} - } + "tool": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": {} + } + } + }, + "required": [ + "name", + "description", + "parameters" + ] } }, - "required": [ - "name", - "description", - "parameters" - ], "result": { "property": { "response": {