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[patch]: Fix handling custom run id in sequence streams #4989

Merged
merged 4 commits into from
Apr 5, 2024

Conversation

bracesproul
Copy link
Collaborator

@bracesproul bracesproul commented Apr 5, 2024

When streaming a runnable sequence before, custom runId's were not properly handled and tracing would lose some items inside the sequence due to duplicate runIds

(also includes some missing formatting)

Copy link

vercel bot commented Apr 5, 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 Apr 5, 2024 4:26pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview Apr 5, 2024 4:26pm

@bracesproul bracesproul marked this pull request as ready for review April 5, 2024 16:08
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. auto:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Apr 5, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Apr 5, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Apr 5, 2024
Comment on lines +1590 to +1598
const { runId, ...otherOptions } = options ?? {};
const runManager = await callbackManager_?.handleChainStart(
this.toJSON(),
_coerceToDict(input, "input"),
runId,
undefined,
undefined,
undefined,
undefined,
options?.runName
otherOptions?.runName
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cc @jacoblee93 for handling without no-param-reassign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant