Coverage for src / mcp_server_langgraph / core / interrupts / __init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.12.0, created at 2025-12-03 00:43 +0000
« prev ^ index » next coverage.py v7.12.0, created at 2025-12-03 00:43 +0000
1"""
2Human-in-the-Loop Workflows
4Interrupt mechanisms for agent approval and human oversight.
6Features:
7- Approval nodes that pause execution
8- Resume/reject workflows
9- Notification system
10- Audit trail for approvals
12Example:
13 from mcp_server_langgraph.core.interrupts import ApprovalNode, ApprovalRequired
15 # In your agent graph
16 graph.add_node("action", perform_action)
17 graph.add_node("approval", ApprovalNode("approve_action"))
18 graph.add_edge("approval", "action")
20 # Execution pauses at approval node
21 # Resume with: agent.update_state(config, {"approved": True})
22"""
24from .approval import ApprovalNode, ApprovalRequired, ApprovalResponse, ApprovalStatus
25from .interrupts import InterruptType, create_interrupt_handler
27__all__ = [
28 "ApprovalNode",
29 "ApprovalRequired",
30 "ApprovalResponse",
31 "ApprovalStatus",
32 "InterruptType",
33 "create_interrupt_handler",
34]