chore(hitl): update hitl in both js and python#813
Merged
Conversation
Contributor
|
Preview ID generated: preview-hitlup-1760062057-3c54633 |
Eugene Yurtsev (eyurtsev)
marked this pull request as ready for review
October 11, 2025 02:02
Eugene Yurtsev (eyurtsev)
requested review from
Kathryn May (katmayb) and
Lauren Hirata Singh (lnhsingh)
as code owners
October 11, 2025 02:02
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Human-in-the-Loop (HITL) documentation to reflect a new schema that changes the terminology and structure of the HITL implementation. The update affects both JavaScript and Python examples to maintain consistency across languages.
Key changes:
- Updates terminology from "response types" to "decision types" and from "accept/respond" to "approve/reject"
- Changes the data structure from simple arrays to objects with
decisionswrapper and new field names - Updates configuration syntax for allowed decisions
Comments suppressed due to low confidence (1)
src/oss/langchain/human-in-the-loop.mdx:1
- The "UI integration" section was removed but contained valuable information about integration with LangChain UI applications. This removal may leave users without guidance on how to integrate HITL with UI components.
---
| interrupt_on={ | ||
| "write_file": True, # All actions (accept, edit, respond) allowed | ||
| "execute_sql": {"allow_accept": True, "allow_respond": True}, # No editing allowed | ||
| "write_file": True, # All decisions (approve, edit, reject) allowed |
There was a problem hiding this comment.
The configuration structure is inconsistent. Line 53 uses True for all decisions allowed, but line 54 uses an object with allowed_decisions array. Consider using consistent structure, such as {"allowed_decisions": ["approve", "edit", "reject"]} for the write_file configuration.
Suggested change
| "write_file": True, # All decisions (approve, edit, reject) allowed | |
| "write_file": {"allowed_decisions": ["approve", "edit", "reject"]}, # All decisions (approve, edit, reject) allowed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.