This commit is contained in:
marko-kraemer 2024-10-23 04:43:34 +02:00
parent 48a3c442a0
commit 17f9f4ccff
2 changed files with 2 additions and 1 deletions

View File

@ -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
)

View File

@ -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