Integrate the more than +200 onchain tools of GOAT with AG2, the open-source AgentOS (formerly AutoGen).
pip install goat-sdk-adapter-ag2
poetry add goat-sdk-adapter-ag2
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
],
)