mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
lazy loading for browser initialization
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1291,18 +1291,6 @@ class ChatAgent(BaseAgent):
|
||||
args = json.loads(choice.message.tool_calls[0].function.arguments)
|
||||
tool = self.tool_dict[func_name]
|
||||
|
||||
# ! Here, if the agent calls advanced reasoning, provide the chat history
|
||||
if func_name == "make_advanced_reasoning":
|
||||
reformed_question = f"""
|
||||
Please help an assistant to solve reasoning tasks.
|
||||
Here are the chat history between the assistant and the user, which may help you understand the intention of the user and the question:
|
||||
<chat_history>{self.memory.get_context()}</chat_history>
|
||||
|
||||
Now please answer the following question:
|
||||
<question>{args['question']}</question>
|
||||
"""
|
||||
args["question"] = reformed_question
|
||||
|
||||
result = tool(**args)
|
||||
|
||||
assist_msg = FunctionCallingMessage(
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user