Skip to content

chore: update sentiments example #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions examples/sentiments/tweet.gpt → examples/sentiments.gpt
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
tools: sys.write, get-tweet-text, sentiments
tools: github.com/gptscript-ai/browser, sentiments
description: get the sentiments expressed in a tweet
args: url: URL of the tweet to analyze

Perform the actions in the following order:

Get the text of the tweet referenced by "${url} and save it in the file content.txt
Next analyze the sentiments expressed in this file

---
name: get-tweet-text
description: get text content of a tweet
args: url: url towards a tweet

#!python3 main.py "$url"
Get the text of the tweet referenced by $url.
Then, analyze the sentiments expressed in this tweet.

---
name: sentiments
Expand All @@ -21,4 +14,4 @@ args: content: any string

You are a program designed to assess the sentiments expressed by a writer in a text.

Do not give too many details, just the overall sentiments that is expressed in "${content}"
Do not give too many details, just the overall sentiments that is expressed in "${content}"
22 changes: 0 additions & 22 deletions examples/sentiments/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions examples/sentiments/main.py

This file was deleted.

1 change: 0 additions & 1 deletion examples/sentiments/requirements.txt

This file was deleted.