Skip to content

Commit 9e85b89

Browse files
authored
Remove wrong decision type from inline comment of HITL docs (#1775)
## Overview <!-- Brief description of what documentation is being added/updated --> This PR removes decision type "edit" from an inline comment located in HITL docs. In the scenario described in the code snippet, only "approve" and "reject" are allowed but the inline comment includes "edit", which contradicts interrupt config. ## Type of change **Type:** Update existing documentation ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [ ] I have tested my changes locally using `docs dev` - [ ] All code examples have been tested and work correctly - [ ] I have used **root relative** paths for internal links - [ ] I have updated navigation in `src/docs.json` if needed (Internal team members only / optional): Create a preview deployment as necessary using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers --> to make it clear: <img width="647" height="439" alt="langchain_docs_pr" src="https://github.com/user-attachments/assets/7be38aee-bed5-4f0b-868f-f7b9e189d743" />
1 parent ffdb217 commit 9e85b89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oss/langchain/human-in-the-loop.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ print(result['__interrupt__'])
203203
# Resume with approval decision
204204
agent.invoke(
205205
Command( # [!code highlight]
206-
resume={"decisions": [{"type": "approve"}]} # or "edit", "reject" [!code highlight]
206+
resume={"decisions": [{"type": "approve"}]} # or "reject" [!code highlight]
207207
), # [!code highlight]
208208
config=config # Same thread ID to resume the paused conversation
209209
)
@@ -253,7 +253,7 @@ console.log(result.__interrupt__);
253253
// Resume with approval decision
254254
await agent.invoke(
255255
new Command({ // [!code highlight]
256-
resume: { decisions: [{ type: "approve" }] }, // or "edit", "reject" [!code highlight]
256+
resume: { decisions: [{ type: "approve" }] }, // or "reject" [!code highlight]
257257
}), // [!code highlight]
258258
config // Same thread ID to resume the paused conversation
259259
);

0 commit comments

Comments
 (0)