Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bizrockman/2a2c421da0bc4e24b5320e4f46da0ff2 to your computer and use it in GitHub Desktop.
Save bizrockman/2a2c421da0bc4e24b5320e4f46da0ff2 to your computer and use it in GitHub Desktop.
AutoGen - Einfaches Beispiel
from autogen import AssistantAgent, UserProxyAgent
config_list = [
{
"model": "gpt-4o",
"api_key": "sk-...",
}
]
assistant = AssistantAgent(
name="assistant",
llm_config={"config_list": config_list}
)
user_proxy = UserProxyAgent(
name="user_proxy",
code_execution_config=False
)
user_proxy.initiate_chat(assistant, message="Wie groß ist die Sonne?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment