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
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,38 @@ 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. This can be set up as a scheduled cron job to send you the news.
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 a personalized news update (see [news-cron.sh](news-cron.sh)).
8
8
9
9
```bash
10
-
# Update environmental variables for your use case
export ABOUT_ME="I'm a 35 year old woman who lives in Los Angeles. I work at Acme in technology and AI. I have 2 boys."
14
+
export COMPANY="MyCompany"
15
+
export ALPHA_KEY="alpha-key"# Get Alpha Advantage API Key for Stock Prices - https://www.alphavantage.co/
16
+
export OPENAI_API_BASE="http://localhost:4000/v1"
17
+
export OPENAI_API_KEY="sk-3-laws-safe"
18
+
export LLM_MODEL="llama"
19
+
export CITY="Los Angeles"
20
+
export CITY_WEEKEND="Ventura"
21
+
export EMAIL_FORMAT=true
22
+
23
+
echo""
24
+
python3 ./news.py
12
25
```
13
26
14
27
## Movie Bot
15
28
16
29
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
30
18
31
```bash
32
+
echo"Thinking about a movie recommendation for you..."
33
+
34
+
# Update these configurations
19
35
export OPENAI_API_BASE="http://localhost:4000/v1"
20
36
export OPENAI_API_KEY="sk-3-laws-safe"
21
37
export LLM_MODEL="llama"
38
+
export ABOUT_ME="We love movies! Action, adventure, sci-fi and feel good movies are our favorites."
0 commit comments