This repository holds enhanced Agents, built for the Microsoft AutoGen Framework. Debuting with a MemoryEnabledAgent with improvements in context/token control, portability, and PnP functionality.
I want to store the messages at each conversation between userproxy and agent but thats not happening here, idk why, NEED HELP PLEASE!!!!!
# Max convo length before the end starts falling off, in number of messages. User and AI both count, so minimum is 2.DEFAULT_MAX_CONVO_LENGTH=2
user_proxy=autogen.UserProxyAgent(
name="user_proxy",
is_termination_msg=lambdax: x.get("content", "") andx.get("content", "").rstrip().endswith("TERMINATE"),
human_input_mode="NEVER",
system_message="A human admin. Execute the google and hubspot apis provided to you. Reply with Terminate where finished or chatbot asks for any required parameters",
max_consecutive_auto_reply=10,
function_map=mem_agent.get_function_map(),
code_execution_config={
"work_dir": "coding",
"use_docker": False,
},
# Please set use_docker=True if docker is available to run the generated code. Using docker is safer than running the generated code directly.
)