Install and basic example
pip install pyautogen
import autogen
config = {"config_list": [{"model": "llama3.2", "base_url": "http://localhost:11434/v1", "api_key": "ollama"}]}
coder = autogen.AssistantAgent(name="Coder", llm_config=config)
user = autogen.UserProxyAgent(name="User", human_input_mode="NEVER", max_consecutive_auto_reply=5)
user.initiate_chat(coder, message="Write a function to check prime numbers")