From b7049f70e5596bbec704411c9dbf0b525793b4e3 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Tue, 19 Nov 2024 00:17:43 +0800 Subject: [PATCH] fix: no_tool should be true for tool response --- .../ten_packages/extension/openai_chatgpt_python/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/ten_packages/extension/openai_chatgpt_python/extension.py b/agents/ten_packages/extension/openai_chatgpt_python/extension.py index 0ffe243f..c59d6239 100644 --- a/agents/ten_packages/extension/openai_chatgpt_python/extension.py +++ b/agents/ten_packages/extension/openai_chatgpt_python/extension.py @@ -243,7 +243,7 @@ async def handle_tool_call(tool_call): } new_message["content"] = new_message["content"] + \ self._convert_to_content_parts(result_content) - await self.queue_input_item(True, messages=[new_message]) + await self.queue_input_item(True, messages=[new_message], no_tool=True) else: ten_env.log_error(f"Tool call failed") self.tool_task_future.set_result(None)