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]: Add status field to tool #6268

Merged
merged 6 commits into from
Jul 30, 2024
Merged

core[minor]: Add status field to tool #6268

merged 6 commits into from
Jul 30, 2024

Conversation

bracesproul
Copy link
Collaborator

@bracesproul bracesproul commented Jul 30, 2024

Added new status field to tools.

TODO in separate PR:

Copy link

vercel bot commented Jul 30, 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 30, 2024 8:31pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2024 8:31pm

@bracesproul bracesproul marked this pull request as ready for review July 30, 2024 00:52
@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 30, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 30, 2024
@@ -212,7 +212,8 @@ export abstract class StructuredTool<
let result;
try {
result = await this._call(parsed, runManager, config);
} catch (e) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Copy link
Collaborator

Choose a reason for hiding this comment

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

Changes here seem fine but unrelated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

forgot to remove when I deleted the error handling code from this PR.

@jacoblee93
Copy link
Collaborator

Looks good!

Only thing I'll flag is that streamed chunks will always have success set to true while tool messages may not

@bracesproul
Copy link
Collaborator Author

Looks good!

Only thing I'll flag is that streamed chunks will always have success set to true while tool messages may not

Going to push a refactor to leave undefined when concatenating unless it's passed.

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:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants