-
Notifications
You must be signed in to change notification settings - Fork 281
1Shot API Plugin & Example #510
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
Draft
csibbach
wants to merge
20
commits into
goat-sdk:main
Choose a base branch
from
UXlySoftware:feature/1shotapi
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated the readmes.
… package. Added a createTransaction tool
… set concept. Add tools for managing the working set, as well as getting and listing trnasaction executions.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to:
Background
This PR adds a new plugin to GOAT to support 1Shot API. 1Shot API is an agent-focussed web3 platform, consisting of tool annotations with 1Shot Prompts, hot wallet infrastructure, and managed transactions for most major EVM-compatible blockchains. Its API allows any smart contract to be used via a REST call, and an AI agent can determine which contracts it wants to interact with. The plugin is unique in that it supports dynamic tool set generation, because of the 128 tool limit.
What does this PR do
This PR adds a 1Shot API typescript plugin, as well as an example that demonstrates a multi-agent approach to generic contract usage. The example uses a 3 agent pipeline- Planning, Contract Discovery, and Execution, to allow it to perform almost any action on the blockchain.
Testing
You will need a free account on 1Shot API first. Run the new example in typescript\examples\by-use-case\evm-read-1shot. You will need to create an API Credential on 1Shot, and collect your Client ID, Client Secret, and Business ID. You will also need an API key for a model. Copy the template.env to .env and fill in the required values. Then run
pnpm ts-node index.tsand give it a prompt such as "Get my balance of USDC on mainnet for my account 0x3e6a2f0CBA03d293B54c9fCF354948903007a798". Instructions are provided in the README for the example.Detailed testing results
Docs
My changes do not require a change to the project documentation. It does have a specific usage pattern as it provides a dynamic toolset; this is documented in the plugin's README.
Checklist