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

patch(langgraph): Refactor pregel loop to use new PregelRunner class, ported from python LangGraph. #791

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

benjamincburns
Copy link
Contributor

@benjamincburns benjamincburns commented Jan 20, 2025

This work is a prerequisite to porting the imperative (functional?) API over from python LangGraph.

@benjamincburns benjamincburns force-pushed the ben/pregel-runner branch 7 times, most recently from 1144241 to 8dda05d Compare January 21, 2025 02:49
@benjamincburns benjamincburns marked this pull request as ready for review January 21, 2025 03:05
console.log(
`Retrying task "${pregelTask.name}" after ${interval.toFixed(
`Retrying task "${String(pregelTask.name)}" after ${interval.toFixed(
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't do anything, right? string interpolation does calls toString on things anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how that snuck in - probably an errant Cursor [tab] edit 🤔.

Copy link
Contributor Author

@benjamincburns benjamincburns Jan 21, 2025

Choose a reason for hiding this comment

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

Ah right, it's necessary because the type of pregelTask.name is string | Symbol.

@benjamincburns benjamincburns merged commit b290953 into main Jan 21, 2025
19 checks passed
@benjamincburns benjamincburns deleted the ben/pregel-runner branch January 21, 2025 18:24
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