Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
singhsidhukuldeepΒ 
posted an update Aug 11
Post
2150
AutoGen from @Microsoft is crazy! πŸš€ It's an open-source framework that allows LLM agents to chat with each other to solve your tasks. πŸ€–πŸ’¬

They use the Assistant-Agent and User-Proxy-Agent framework! πŸ› οΈ

As the name suggests, the Assistant-Agent does the work, and the User-Proxy-Agent behaves like a human, guiding the Assistant-Agent and double-checking its work! πŸ§‘β€πŸ’»βœ…

Both Assistant-Agent and User-Proxy-Agent can be the same or different LLMs. πŸ€”πŸ”„

AutoGen is an open-source programming framework for building AI agents and facilitating cooperation among multiple agents to solve tasks. 🌟

This is truly amazing for building agentic AI quickly! πŸš€βœ¨

GitHub: https://github.com/microsoft/autogen πŸ”—


from autogen import AssistantAgent, UserProxyAgent, config_list_from_json

#config
config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")

assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False}) 

user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
# This initiates an automated chat between the two agents to solve the task