Merge pull request #68 from camel-ai/branch_yh

enable lazy loading for browser initialization
This commit is contained in:
Yuhang Zhou
2025-03-08 17:17:47 +08:00
committed by GitHub
213 changed files with 21 additions and 25 deletions

View File

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

Some files were not shown because too many files have changed in this diff Show More