From 17f9f4ccff021bee1ccceb0ef64efec1ee84b6b7 Mon Sep 17 00:00:00 2001 From: marko-kraemer Date: Wed, 23 Oct 2024 04:43:34 +0200 Subject: [PATCH] wip --- agent.py | 1 + agentpress/thread_manager.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/agent.py b/agent.py index f39884eb..e3f73609 100644 --- a/agent.py +++ b/agent.py @@ -40,6 +40,7 @@ async def run_agent( tool_choice="auto", additional_message=None, execute_tools_async=False, + use_tools=True execute_model_tool_calls=True ) diff --git a/agentpress/thread_manager.py b/agentpress/thread_manager.py index 4e6fbe4d..6c846bd6 100644 --- a/agentpress/thread_manager.py +++ b/agentpress/thread_manager.py @@ -143,7 +143,7 @@ class ThreadManager: return True return False - async def run_thread(self, thread_id: str, system_message: Dict[str, Any], model_name: str, temperature: float = 0, max_tokens: Optional[int] = None, tool_choice: str = "auto", additional_message: Optional[Dict[str, Any]] = None, execute_tools_async: bool = True, execute_model_tool_calls: bool = True, use_tools: bool = True) -> Dict[str, Any]: + async def run_thread(self, thread_id: str, system_message: Dict[str, Any], model_name: str, temperature: float = 0, max_tokens: Optional[int] = None, tool_choice: str = "auto", additional_message: Optional[Dict[str, Any]] = None, execute_tools_async: bool = True, execute_model_tool_calls: bool = True, use_tools: bool = False) -> Dict[str, Any]: messages = await self.list_messages(thread_id) prepared_messages = [system_message] + messages