Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

AG2 Adapter for GOAT

Integrate the more than +200 onchain tools of GOAT with AG2, the open-source AgentOS (formerly AutoGen).

Installation

pip install goat-sdk-adapter-ag2
poetry add goat-sdk-adapter-ag2

Usage

See a full working example here.

from goat_adapters.ag2.adapter import register_tools
from autogen import ConversableAgent

crypto_agent = ConversableAgent(
    name="crypto_agent",
    system_message="You are a crypto expert...",
)

executor_agent = ConversableAgent(
    name="executor_agent",
    human_input_mode="NEVER",
)

register_tools(
    caller=crypto_agent,
    executor=executor_agent,
    wallet=# Your wallet,
    plugins=[
        # Your plugins
    ],
)