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

community: adds support for getting github releases for the configured repository #29318

Merged
merged 6 commits into from
Jan 22, 2025

Conversation

MacsDickinson
Copy link
Contributor

Description: adds support for github tool to query github releases on the configure respository
Issue: N/A
Dependencies: N/A
Twitter handle: @MacsDickinson

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 3:45pm

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. community Related to langchain-community labels Jan 20, 2025
Copy link
Collaborator

@ccurme ccurme left a comment

Choose a reason for hiding this comment

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

This is a somewhat breaking change. Consider users who are running agents that access tools in this toolkit. If you are adding tools, you are giving these agents new capabilities that users may not desire or be aware of. What do you think about gating these behind a flag? e.g., include_release_tools: bool = False.

We should also document them in this page (can be modified here).

@ccurme ccurme self-assigned this Jan 21, 2025
@MacsDickinson
Copy link
Contributor Author

added the flag which is defaulted to False. This can be used when instantiating the toolkit

github = GitHubAPIWrapper()
toolkit = GitHubToolkit.from_github_api_wrapper(github, include_release_tools = True)

Let me know if this isn't the preferred place to apply this, I'm not familiar with the convention

from langchain_community.utilities.github import GitHubAPIWrapper


def test_github_toolkit() -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for adding this!

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 22, 2025
@ccurme ccurme enabled auto-merge (squash) January 22, 2025 15:38
@ccurme ccurme merged commit 7378c95 into langchain-ai:master Jan 22, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants