Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| .gitignore | 1 year ago | |
| README.md | 1 year ago | |
| SimpleAssistantAgent.py | 1 year ago | |
| app_agent.py | 1 year ago | |
| app_team.py | 1 year ago | |
| model_config_template.yaml | 1 year ago | |
In this sample, we will demonstrate how to build simple chat interface that
interacts with a Core
agent or a team, using Chainlit,
and support streaming messages.
The core_chainlit sample is designed to illustrate a simple use case of ChainLit integrated with a single-threaded agent runtime. It includes the following components:
To run this sample, you will need:
requirements.txtTo run this sample, you will need to install the following packages:
pip install -U chainlit autogen-core autogen-ext[openai] pyyaml
To use other model providers, you will need to install a different extra
for the autogen-ext package.
See the Models documentation for more information.
Create a configuration file named model_config.yaml to configure the model
you want to use. Use model_config_template.yaml as a template.
The first sample demonstrate how to interact with a single AssistantAgent
from the chat interface.
Note: cd to the sample directory.
chainlit run app_agent.py
The second sample demonstrate how to interact with a team of agents from the
chat interface.
chainlit run app_team.py -h
There are two agents in the team: one is instructed to be generally helpful
and the other one is instructed to be a critic and provide feedback.
This is a mirror of AutoGen from GitHub. AutoGen is a framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
Python SVG Jupyter Notebook C# TSX other