Skip to content

Commit 1ef9fc3

Browse files
authored
Merge pull request #1 from AgoraIO/readme
Updated Readme
2 parents cd7ee5b + acf01dc commit 1ef9fc3

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

README.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Before running the demo, ensure you have the following installed and configured:
2222

2323
- On macOS:
2424
```bash
25-
brew install ffmpeg
25+
brew install ffmpeg portaudio
2626
```
2727
- On Ubuntu (verified on versions 22.04 & 24.04):
2828
```bash
@@ -40,8 +40,9 @@ Before running the demo, ensure you have the following installed and configured:
4040

4141
## Organization of this Repo
4242

43-
- `realtimeAgent/realtime` contains the Python implementation for using Realtime API.
44-
- `realtimeAgent/agent.py` contains a demo agent that uses `realtime` and [agora-realtime-api-ai](https://pypi.org/project/agora-realtime-ai-api/) to build a simple app.
43+
- `realtimeAgent/realtime` contains the Python implementation for interacting with the Realtime API.
44+
- `realtimeAgent/agent.py` includes a demo agent that leverages the `realtime` module and the [agora-realtime-ai-api](https://pypi.org/project/agora-realtime-ai-api/) package to build a simple application.
45+
- `realtimeAgent/main.py` provides a web server that allows clients to start and stop AI-driven agents.
4546

4647
## Run the Demo
4748

@@ -65,27 +66,29 @@ Before running the demo, ensure you have the following installed and configured:
6566
```
6667

6768
### Start HTTP Server
69+
6870
1. Run the http server to start demo agent via restful service
6971
```bash
7072
python -m realtime_agent.main server
7173
```
72-
The server provides a simple layer for managing agent processes.
74+
The server provides a simple layer for managing agent processes.
7375

7476
### API Resources
7577

76-
- [POST /start](#post-start)
77-
- [POST /stop](#post-stop)
78-
78+
- [POST /start](#post-start)
79+
- [POST /stop](#post-stop)
7980

8081
### POST /start
82+
8183
This api starts an agent with given graph and override properties. The started agent will join into the specified channel, and subscribe to the uid which your browser/device's rtc use to join.
8284
83-
| Param | Description |
84-
| -------- | ------- |
85-
| channel_name | channel name, it needs to be the same with the one your browser/device joins, agent needs to stay with your browser/device in the same channel to communicate |
86-
| uid | the uid which ai agent use to join |
85+
| Param | Description |
86+
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
87+
| channel_name | (string) channel name, it needs to be the same with the one your browser/device joins, agent needs to stay with your browser/device in the same channel to communicate |
88+
| uid | (int)the uid which ai agent use to join |
8789
8890
Example:
91+
8992
```bash
9093
curl 'http://localhost:8080/start_agent' \
9194
-H 'Content-Type: application/json' \
@@ -96,13 +99,15 @@ curl 'http://localhost:8080/start_agent' \
9699
```
97100
98101
### POST /stop
102+
99103
This api stops the agent you started
100104
101-
| Param | Description |
102-
| -------- | ------- |
103-
| channel_name | channel name, the one you used to start the agent |
105+
| Param | Description |
106+
| ------------ | ---------------------------------------------------------- |
107+
| channel_name | (string) channel name, the one you used to start the agent |
104108
105109
Example:
110+
106111
```bash
107112
curl 'http://localhost:8080/stop_agent' \
108113
-H 'Content-Type: application/json' \
@@ -113,4 +118,4 @@ curl 'http://localhost:8080/stop_agent' \
113118
114119
### Front-End for Testing
115120
116-
Use Agora's [Voice Call Demo](https://webdemo.agora.io/basicVoiceCall/index.html)
121+
To test agents, use Agora's [Voice Call Demo](https://webdemo.agora.io/basicVoiceCall/index.html).

architecture-dark-theme.png

-9.23 KB
Loading

architecture-light-theme.png

-8.39 KB
Loading

0 commit comments

Comments
 (0)