Composio enables your Griptape agents to connect with many tools!

Goal: Star a repository on GitHub with natural language & Griptape Agent

Install Packages & Connect a Tool

These commands prepare your environment for seamless interaction between Griptape and Github.

pip install composio_griptape
# Connect your Github so agents can use it. 
composio-cli add github
# Check all different apps which you can connect with
composio-cli show-apps

Goal: Use Agent to Interact with GitHub using Composio

1

Import Base Packages

from griptape.structures import Agent
from griptape.utils import Chat
from composio_griptape import App, Action, Tag, ComposioToolset
import dotenv

dotenv.load_dotenv()
2

Add Tools to agent

composio_toolset = ComposioToolset()
composio_tools = composio_toolset.get_tools(tools = App.GITHUB)

agent = Agent(
    tools=composio_tools
)
3

Start Agent Chat

Chat(agent).start()
4

Talk with Agent

Star samparkai/composio_sdk repository