Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

OpenAI Agents SDK Adapter for GOAT

Integrate the more than +200 onchain tools of GOAT with OpenAI Agents SDK.

Installation

pip install goat-sdk-adapter-openai-agents-sdk
poetry add goat-sdk-adapter-openai-agents-sdk

Usage

See a full working example here.

from goat_adapters.openai_agents_sdk.adapter import get_on_chain_tools

tools = get_on_chain_tools(
    wallet=# Your wallet,
    plugins=[
        # Your plugins
    ],
)

agent = Agent(
    name="GOAT Agent",
    instructions=(
        "You are a helpful agent that can interact onchain using the GOAT SDK. "
    ),
    tools=tools
)