Created
July 21, 2024 11:55
-
-
Save bizrockman/2a2c421da0bc4e24b5320e4f46da0ff2 to your computer and use it in GitHub Desktop.
AutoGen - Einfaches Beispiel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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