Use Composio to get an array of tools with your Griptape wokflow.
Project description
🚀🔗 Integrating Composio with Griptape
Streamline the integration of Composio within the Griptape agentic framework to enhance the interaction capabilities of Griptape agents with external applications, significantly extending their operational range and efficiency.
Objective
- Facilitate the automation of starring a GitHub repository through the use of conversational commands within the Griptape framework, leveraging Composio's Function Calls.
Installation and Setup
Ensure you have the necessary packages installed and connect your GitHub account to allow your agents to utilize GitHub functionalities.
# Install Composio LangChain package
pip install composio-griptape
# Connect your GitHub account
composio-cli add github
# View available applications you can connect with
composio-cli show-apps
Usage Steps
1. Initialize Environment and Client
Establish your development environment by importing necessary libraries and setting up the Griptape client.
from griptape.structures import Agent
from griptape.utils import Chat
from composio_griptape import App, Action, Tag, ComposioToolSet
import dotenv
dotenv.load_dotenv("/Users/sawradip/Desktop/practice_code/practice_composio/composio_sdk/examples/.env")
2. Integrating GitHub Tools with Composio for Griptape Operations
This section guides you through the process of integrating GitHub tools into your Griptape projects using Composio's services.
composio_toolset = ComposioToolSet()
composio_tools = composio_toolset.get_tools(tools = App.GITHUB)
agent = Agent(
tools=composio_tools
)
Step 3: Agent Execution
This step involves configuring and Chatting with the Griptape agent to carry out specific tasks, for example, starring a GitHub repository.
Chat(agent).start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file composio_griptape-0.5.44.tar.gz
.
File metadata
- Download URL: composio_griptape-0.5.44.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf319d3e2c535a219603f926dae8bdfee07ac250a8b1e5fc851e61e69e62107d |
|
MD5 | eb678e79b32869d145de3e3a6cc49965 |
|
BLAKE2b-256 | 99c0561795c5c8e97eabf7f85f4b76c5fd000b0fad2e2def465867e26c83b0f4 |
File details
Details for the file composio_griptape-0.5.44-py3-none-any.whl
.
File metadata
- Download URL: composio_griptape-0.5.44-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f91a130ab3c3f5a6476ac9c07d4c7cb670fe6386f60adb3d9ad26fc6814b523a |
|
MD5 | 3ecc91681a820a9999751e0d965661fb |
|
BLAKE2b-256 | b1848c0490aea9799482dd4ac962888bcad7bf4c65bed5909941522dff24ad92 |