Skip to content
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

Add trello and supabase tools #2

Merged
merged 2 commits into from
Aug 11, 2024
Merged
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
17 changes: 17 additions & 0 deletions apis/supabase/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Supabase API Tools

This folder contains tools for GPTScript to interact with the Supabase API.

## Prerequisites

Before you begin, make sure you have a Supabase API key. The instructions for creating one are [here](https://supabase.com/docs/reference/api/introduction).

## Available Tools

- github.com/gptscript-ai/tools/apis/supabase/read-only

- This is a set of tools that can read information from the Supabase API, but will not change anything.

- github.com/gptscript-ai/tools/apis/supabase/read-write

- This is a broader set of tools that can read, write, and delete things in the Supabase API.
2 changes: 2 additions & 0 deletions apis/supabase/read-only/openapi.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions apis/supabase/read-only/tool.gpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name: Supabase API(Read)
Share Credential: github.com/gptscript-ai/credential as api.supabase.combearer with GPTSCRIPT_API_SUPABASE_COM_BEARER as env and "Please read the instructions [here](https://supabase.com/docs/reference/api/introduction) and provide your supabase API key" as message and key as field
Share Tools: v1-get* from ./openapi.json
Share Tools: v1-list* from ./openapi.json

2 changes: 2 additions & 0 deletions apis/supabase/read-write/openapi.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apis/supabase/read-write/tool.gpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Name: Supabase API(Read-Write)
Share Credential: github.com/gptscript-ai/credential as api.supabase.combearer with GPTSCRIPT_API_SUPABASE_COM_BEARER as env and "Please read the instructions [here](https://supabase.com/docs/reference/api/introduction) and provide your supabase API key" as message and key as field
Share Tools: * from ./openapi.json
30 changes: 30 additions & 0 deletions apis/trello/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Trello API Tool

This is a set of GPTScript tools to interact with the Trello API.

## Prerequisite

You need generate a Trello API token [here](https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&key=aabf1a5f6af0a2e5c4c3807b4d3ccbc8). You will be automatically prompted for this information when you are running the tool.

## Quick Start

Create a new file called `agent.gpt` with this as the contents:

```
Tools: github.com/gptscript-ai/tools/apis/trello
Chat: true

Please help me with my Trello workspace.
```

Then, run it with `gptscript agent.gpt`. You'll be prompted to enter your API key; once you provide it, you'll be able to chat with the large language model and have it perform actions for you in Trello.

## Tools

These are some of the tools available to the LLM when you use this tool set:

- **post-cards**: Create new cards on a Trello board.
- **delete-cards-id**: Delete a card by its ID.
- **get-boards-id-cards**: Retrieve all cards on a specific board.
- **get-organizations-id-boards**: Retrieve all boards in a specific organization.
- **get-members-id-organizations**: Retrieve all organizations a member belongs to.
Loading