Galadriel framework comes with a set of tools out of the box. New tools are regularly added to the framework.

Web3 Tools

Here is the list of market data API available as tools in the framework:

Coingecko

Current provided set of tools related with Coingecko:

Dexscreener

Tools for interacting with the Dexscreener API to retrieve token information and market data.

Devnet mock

Tools for interacting with the Dexscreener API to retrieve token information and market data.

Jupiter

Tool for swapping tokens on the Solana blockchain using the Jupiter Aggregator:

  • SwapTokenTool: This tool allows an agent to swap one token for another.

Solana

Set of tools for managing user token balances on the Solana blockchain

Composio Tools

Composio is a service for connecting AI Agents to hundreds external tools like Gmail, GitHub, Salesforce, etc. Each of these tools can be added by it’s name by using convert_action helper.

Galadriel framework empowers you to use any tool from Composio, here’s how to do it:

How to use

from galadriel.tools.composio_converter import convert_action
composio_weather_tool = convert_action(
    os.getenv("COMPOSIO_API_KEY"), "WEATHERMAP_WEATHER"
)

agent = CodeAgent(
    model=model,
    tools=[composio_weather_tool],
)

Langchain Tools

Galadriel framework allows you to use any tool from Langchain.

How to use

Take the following example where we convert the langchain’s wikipedia tool:

from galadriel.core_agent import Tool
from langchain_community.tools import WikipediaQueryRun
from langchain_community.utilities import WikipediaAPIWrapper

api_wrapper = WikipediaAPIWrapper(top_k_results=1, doc_content_chars_max=100)
tool = WikipediaQueryRun(api_wrapper=api_wrapper)
wikipedia_tool = Tool.from_langchain(langchain_tool=tool)

Retriever tool

Retriever provides access to loaded documents, which can be queried to retrieve knowledge.

How to use

# Load documents: https://python.langchain.com/docs/tutorials/rag/#loading-documents
# Split documents: https://python.langchain.com/docs/tutorials/rag/#splitting-documents

retriever_tool = RetrieverTool(docs)
agent = CodeAgent(
    tools=[retriever_tool], model=model, max_steps=4, verbosity_level=2
)

Check out Agentic RAG where RetrieverTool is used to build an agent that leverages a knowledge base.

Twitter/X Tools

Galadriel provided multiple tools to build Twitter/X agents:

Conclusion

Galadriel provides a robust set of built-in tools, covering Web3, AI-powered integrations, retrieval-augmented generation, and social media automation. With support for external platforms like Composio and Langchain, the framework enables seamless interaction with a wide range of services. As new tools continue to be added, Galadriel remains a powerful and evolving solution for building AI-driven applications. Stay updated with the latest additions and enhancements by following the official repository.