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
Copy file name to clipboardExpand all lines: agents/README.md
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,33 @@ Agents use LLMs to take action or provide curated reports.
4
4
5
5
## News Bot
6
6
7
-
The [news.py](news.py) script will use an OpenAI API based LLM to process raw weather payloads, stock prices and top news items into a curated news report.
7
+
The [news.py](news.py) script will use an OpenAI API based LLM to process raw weather payloads, stock prices and top news items into a curated news report. This can be set up as a scheduled cron job to send you the news.
8
8
9
9
```bash
10
10
# Update environmental variables for your use case
The [movie.py](movie.py) script uses an LLM to make a movie suggestion. It records previous recommendations to prevent repeating suggestions. Outputs a single line recommendation and writes a full detailed recommendation to MESSAGE_FILE. This can be set up as a scheduled cron job to send you a text or email you a recommendation.
17
+
18
+
```bash
19
+
export OPENAI_API_BASE="http://localhost:4000/v1"
20
+
export OPENAI_API_KEY="sk-3-laws-safe"
21
+
export LLM_MODEL="llama"
22
+
export DATABASE="./movie.db"
23
+
export MESSAGE_FILE="./message.txt"
24
+
25
+
python3 ./movie.py
26
+
```
27
+
28
+
## Conversational Agent
29
+
30
+
The [conversational.py](conversational.py) script uses an LLM (or two LLMs) to create a back and forth conversation.
31
+
This script sets up a teacher and student identities. The teacher and student LLMs take turns responding to each other.
32
+
The conversation continues until a stop prompt is given or a maximum number of rounds is reached. The teacher LLM then provides a summary of the conversation and an evaluation of the student.
0 commit comments