mirror of https://github.com/kortix-ai/suna.git
wip
This commit is contained in:
parent
48a3c442a0
commit
17f9f4ccff
1
agent.py
1
agent.py
|
@ -40,6 +40,7 @@ async def run_agent(
|
||||||
tool_choice="auto",
|
tool_choice="auto",
|
||||||
additional_message=None,
|
additional_message=None,
|
||||||
execute_tools_async=False,
|
execute_tools_async=False,
|
||||||
|
use_tools=True
|
||||||
execute_model_tool_calls=True
|
execute_model_tool_calls=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@ class ThreadManager:
|
||||||
return True
|
return True
|
||||||
return False
|
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)
|
messages = await self.list_messages(thread_id)
|
||||||
prepared_messages = [system_message] + messages
|
prepared_messages = [system_message] + messages
|
||||||
|
|
Loading…
Reference in New Issue