You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample for integrating Core API with chainlit (#6422)
## Why are these changes needed?
This pull request adds new samples that integrates the Autogen Core API
with Chainlit. It closely follows the structure of the
Agentchat+Chainlit sample and provides examples for using a single agent
and multiple agents in a groupchat.
## Related issue number
Closes: #5345
---------
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
In this sample, we will demonstrate how to build simple chat interface that
4
+
interacts with a [Core](https://microsoft.github.io/autogen/stable/user-guide/core-user-guide/index.html)
5
+
agent or a team, using [Chainlit](https://github.com/Chainlit/chainlit),
6
+
and support streaming messages.
7
+
8
+
## Overview
9
+
10
+
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:
11
+
12
+
-**Single Agent**: A single agent that operates within the ChainLit environment.
13
+
-**Group Chat**: A group chat setup featuring two agents:
14
+
-**Assistant Agent**: This agent responds to user inputs.
15
+
-**Critic Agent**: This agent reflects on and critiques the responses from the Assistant Agent.
16
+
-**Closure Agent**: Utilizes a closure agent to aggregate output messages into an output queue.
17
+
-**Token Streaming**: Demonstrates how to stream tokens to the user interface.
18
+
-**Session Management**: Manages the runtime and output queue within the ChainLit user session.
19
+
20
+
## Requirements
21
+
22
+
To run this sample, you will need:
23
+
- Python 3.8 or higher
24
+
- Installation of necessary Python packages as listed in `requirements.txt`
25
+
26
+
## Installation
27
+
28
+
To run this sample, you will need to install the following packages:
0 commit comments