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

core[minor]: RunnableToolLike #6029

Merged
merged 19 commits into from
Jul 11, 2024
Merged

core[minor]: RunnableToolLike #6029

merged 19 commits into from
Jul 11, 2024

Conversation

bracesproul
Copy link
Collaborator

@bracesproul bracesproul commented Jul 10, 2024

Adds new RunnableToolLike class for converting tools -> runnables.
Updates base bindTools implementation to take RunnableToolLike
Updates all integrations which implement bindTools to also accept RunnableToolLike
Updates convert to oai tool/function to also accept RunnableToolLike (this should mean no additional work is required to accept this tool type in integrations)

docs pr: #6030
part of #6031

Copy link

vercel bot commented Jul 10, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 7:49pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 7:49pm

@bracesproul bracesproul changed the title core[minor]: RunnableTool core[minor]: RunnableToolLike Jul 11, 2024
@bracesproul bracesproul marked this pull request as ready for review July 11, 2024 16:18
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. auto:improvement Medium size change to existing code to handle new use-cases labels Jul 11, 2024
@@ -16,7 +16,7 @@ import {
ToolDefinition,
Copy link

Choose a reason for hiding this comment

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

Hey team, just wanted to flag this PR for your review as it includes a change that imports the getEnvironmentVariable function, which may be used to access or read environment variables. It's always good to double-check any changes related to environment variables. Keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants