What problem does it solve?
Comprehensive HITL patterns for CopilotKit, including reusable React components and hooks to implement approval workflows, user input collection, option selection, and progress confirmation.
Core Features & Use Cases
- Core hook: useHumanInTheLoop provides a unified pattern to collect human feedback and approvals within LLM-driven workflows.
- Pattern 1: Approval Workflow - Request user approval before executing sensitive actions using UI dialogs.
- Pattern 2: User Input Collection - Collect structured information from the user via dynamic forms.
- Pattern 3: Option Selection - Present multiple options for the user to choose from.
- Pattern 4: Progress Confirmation - Confirm workflow progress and continuation.
- Use Case: Integrate HITL patterns into CopilotKit-powered agents to streamline human-in-the-loop interactions.
Quick Start
Integrate useHumanInTheLoop into your React components and trigger on approvals, input collection, and option selections.