Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GOAT

AG2

🚀 Quickstart

This example demonstrates how to use GOAT to allow an AG2 agent to send and receive ETH and ERC-20 tokens on EVM networks. This example can be implemented with any other EVM network by changing the chain and RPC URL.

You can use this example with any other agent framework, chain, and wallet of your choice.

Setup

  1. Clone the repository:
git clone https://github.com/goat-sdk/goat.git
  1. Go to the example directory:
cd python/examples/by-framework/ag2
  1. Copy the .env.template and populate with your values:
cp .env.template .env
  • OPENAI_API_KEY
  • WALLET_PRIVATE_KEY
  • RPC_PROVIDER_URL
  1. Install dependencies:
poetry install

Usage

  1. Run the example script:
poetry run python example.py
  1. The example script demonstrates (non-interactive):
  • Checking ERC-20 token balances
  • Registered AG2 tools for interacting with ETH and ERC-20 tokens
  • Interaction between a crypto agent and an executor agent

The script runs with a predefined query to check the balance of a specific token.

Agent Wallets

Crossmint offers one of the most advanced solutions for agent developers and launchpads: Agent Wallets.

To integrate Agent Wallets with GOAT, check out the following quickstarts:

  1. Agent Wallets Quickstart [EVM, Solana]
  2. Agent Launchpad Starter Kit


GOAT