Skip to main content

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

composio_griptape-0.5.43.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

composio_griptape-0.5.43-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file composio_griptape-0.5.43.tar.gz.

File metadata

  • Download URL: composio_griptape-0.5.43.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

Hashes for composio_griptape-0.5.43.tar.gz
Algorithm Hash digest
SHA256 251ee45488ddabfb2e54d7c8cd2f0eba11050846eb13eac1a863a712d3b25b36
MD5 d29db41105edd411d7961a7bd5fcee62
BLAKE2b-256 e6c546c32696056c550f9dd5c11bd8de859e00d860f284343402963e50e0b438

See more details on using hashes here.

File details

Details for the file composio_griptape-0.5.43-py3-none-any.whl.

File metadata

File hashes

Hashes for composio_griptape-0.5.43-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a2503a7af66cd667f7ccd9ec4caceb51e465ce99c49a9c51c3545b6fbadf2e
MD5 0ac94fc6b244bb9fca0b27ec2c9cfaa2
BLAKE2b-256 3795388a50cd01ac9116a9476c6c216fd7d4257b7dec50ed12330f555bac205b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page