Home / Class/ EditDecision Class — langchain Architecture

EditDecision Class — langchain Architecture

Architecture documentation for the EditDecision class in human_in_the_loop.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  608db46a_779a_aa3a_4fdc_9c425ed70de2["EditDecision"]
  23036d87_b616_3e6b_013c_17cd312d2a62["human_in_the_loop.py"]
  608db46a_779a_aa3a_4fdc_9c425ed70de2 -->|defined in| 23036d87_b616_3e6b_013c_17cd312d2a62

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py lines 75–85

class EditDecision(TypedDict):
    """Response when a human edits the action."""

    type: Literal["edit"]
    """The type of response when a human edits the action."""

    edited_action: Action
    """Edited action for the agent to perform.

    Ex: for a tool call, a human reviewer can edit the tool name and args.
    """

Frequently Asked Questions

What is the EditDecision class?
EditDecision is a class in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py.
Where is EditDecision defined?
EditDecision is defined in libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py at line 75.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free