Home / Class/ RejectDecision Class — langchain Architecture

RejectDecision Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  eb972efd_6e1a_389a_cddd_4198670adadf["RejectDecision"]
  23036d87_b616_3e6b_013c_17cd312d2a62["human_in_the_loop.py"]
  eb972efd_6e1a_389a_cddd_4198670adadf -->|defined in| 23036d87_b616_3e6b_013c_17cd312d2a62

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py lines 88–95

class RejectDecision(TypedDict):
    """Response when a human rejects the action."""

    type: Literal["reject"]
    """The type of response when a human rejects the action."""

    message: NotRequired[str]
    """The message sent to the model explaining why the action was rejected."""

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free