Skip to content

Implement new Pregel._defaults() method to match Python implementation#126

Merged
Andrew Nguonly (andrewnguonly) merged 1 commit intolangchain-ai:mainfrom
andrewnguonly:migrate-pregel-4
May 7, 2024
Merged

Implement new Pregel._defaults() method to match Python implementation#126
Andrew Nguonly (andrewnguonly) merged 1 commit intolangchain-ai:mainfrom
andrewnguonly:migrate-pregel-4

Conversation

@andrewnguonly
Copy link
Copy Markdown
Contributor

@andrewnguonly Andrew Nguonly (andrewnguonly) commented May 7, 2024

Summary

_defaults() is a new method in the Pregel class (Python implementation) that the updated invoke() and stream() methods depend on.

Reference: https://github.com/langchain-ai/langgraph/blob/main/langgraph/pregel/__init__.py#L558

Implementation

  1. Create new _defaults() method.
  2. Create new streamChannelsAsIs getter. _defaults() depends on this.
  3. Create new All (*) string literal type. _defaults() depends on this. However, this feature was added as part of another feature unrelated to _defaults(). See this PR: Implement interrupt_before=* and interrupt_after=* langgraph#367.

Next Steps

  1. Update Pregel invoke() and stream() methods.
  2. Update Graph APIs and remaining Pregel state APIs.

@andrewnguonly Andrew Nguonly (andrewnguonly) merged commit b61c6aa into langchain-ai:main May 7, 2024
@andrewnguonly Andrew Nguonly (andrewnguonly) deleted the migrate-pregel-4 branch May 7, 2024 17:20
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