diff --git a/README.md b/README.md index 6e17046b6..d0f54a269 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The Coinbase Developer Platform (CDP) Agentkit simplifies bringing your AI Agent ## Examples Check out `cdp-langchain/examples` for inspiration and help getting started! -- [Chatbot](./cdp-langchain/examples/chatbot/README.md): Simple example of a Chatbot that can perform complex onchain interactions, using OpenAI. +- [Chatbot](./cdp-langchain/examples/chatbot/README.md): Simple example of a Chatbot that can perform complex onchain interactions, using OpenAI or the decentralized [Gaia network](https://www.gaianet.ai/). ## Repository Structure CDP Agentkit is organized as a [monorepo](https://en.wikipedia.org/wiki/Monorepo) that contains multiple packages. diff --git a/cdp-langchain/examples/chatbot/README.md b/cdp-langchain/examples/chatbot/README.md index 891714f05..332a4890d 100644 --- a/cdp-langchain/examples/chatbot/README.md +++ b/cdp-langchain/examples/chatbot/README.md @@ -38,3 +38,19 @@ pip install cdp-langchain ```bash python chatbot.py ``` + +## Run it on a Gaia node + +You can run an LLM on your own machine using the [Gaia network node software](https://github.com/GaiaNet-AI/gaianet-node). With open-source LLMs fine-tined for tool calls, such as the [Llama-3-Groq model on Gaia](https://github.com/GaiaNet-AI/node-configs/tree/main/llama-3-groq-8b-tool), you can use your own Gaia node as a free and decentrailized alternative to OpenAI. + +To configure the agentic chatbot to use decentrailized AI, you just need to change one line of code to point the `base_url` to your Gaia node. +In this example, the `https://llamatool.us.gaianet.network/v1` is a [public Gaia node](https://docs.gaianet.ai/user-guide/nodes#tool-use-llama) running a [tool call LLM](https://docs.gaianet.ai/tutorial/tool-call). + +``` +llm = ChatOpenAI(model="llama", api_key="GAIA", base_url="https://llamatool.us.gaianet.network/v1") +``` + +That's it. Now you can chat with the agent to perform on-chain actions through your COinbase MPC wallet! + + +