Composio is a platform for managing and integrating tools with LLMs and AI agents. You can build fast, Groq-based assistants to seamlessly interact with external applications through features including:
pip install composio-langchain langchain-groq
export GROQ_API_KEY="your-groq-api-key"
export COMPOSIO_API_KEY="your-composio-api-key"
# Connect GitHub (you'll be guided through OAuth flow to get things going)
composio add github
# View all available tools
composio apps
Running this code will create an agent that can interact with GitHub through natural language in mere seconds! Your agent will be able to:
from langchain.agents import AgentType, initialize_agent
from langchain_groq import ChatGroq
from composio_langchain import ComposioToolSet, App
# Initialize LLM
llm = ChatGroq(model="llama-3.3-70b-versatile")
# Get Composio tools (GitHub in this example)
composio_toolset = ComposioToolSet()
tools = composio_toolset.get_tools(apps=[App.GITHUB])
# Create agent
agent = initialize_agent(
tools,
llm,
agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,
verbose=True
)
# Define task and run
task = "Star groq/groq-api-cookbook repo on GitHub"
agent.run(task)
Challenge: Create a Groq-powered agent that can summarize your GitHub issues and post updates to Slack through Composio tools!
For more detailed documentation and resources on building AI agents with Groq and Composio, see: