Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add integration with Composio tools #1820

Merged
merged 5 commits into from
Oct 3, 2024
Merged

Conversation

mattzh72
Copy link
Collaborator

@mattzh72 mattzh72 commented Oct 2, 2024

Description

Add integration with Composio tools. We add a new class function get_composio_tool in the Letta Tool class.

tool = Tool.get_composio_tool(action=Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER)

This tool can then be used by agents.

This mimics the composio get_tools API: https://docs.composio.dev/framework/langchain#use-specific-actions

Testing

We add a very simple unit test for compilation check for the tool's code gen.

We also introduce a E2E example that confirms the integration is working for GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER.

Copy link
Collaborator

@sarahwooders sarahwooders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mattzh72 mattzh72 added the merge-hold Hold off on merging this PR. label Oct 2, 2024
@mattzh72
Copy link
Collaborator Author

mattzh72 commented Oct 2, 2024

Merge hold please.

@sarahwooders sarahwooders merged commit 9018807 into main Oct 3, 2024
11 checks passed
@mattzh72 mattzh72 removed the merge-hold Hold off on merging this PR. label Oct 3, 2024
mattzh72 added a commit that referenced this pull request Oct 9, 2024
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
@cpacker cpacker deleted the matt-add-composio-tools branch October 16, 2024 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants