Skip to main content

User (Human-in-the-Loop)

The User therapist enables human participation in therapy simulations, allowing real people to act as therapists in interactive sessions.

Overview

PropertyValue
Keyuser
TypeHuman-in-the-loop
FocusInteractive Sessions

Description

The User therapist delegates therapeutic responses to a human operator. This enables interactive training scenarios, human evaluation studies, and live demonstrations where a real person provides the therapeutic interventions while interacting with simulated client agents.

Key Features

  • Real-time interaction: Human provides responses in real-time
  • Full control: Complete flexibility in therapeutic approach
  • Training mode: Ideal for student therapist practice
  • Evaluation studies: Enables human evaluation of client agents

Usage

CLI

uv run python -m examples.simulate therapist=user

Python

from patienthub.therapists import get_therapist

therapist = get_therapist(agent_name="user", lang='en')

Configuration

The User therapist does not require additional configuration parameters as it relies on human input.

Use Cases

  • Training scenarios for mental health students
  • Human evaluation studies of client agents
  • Interactive demonstrations and presentations
  • Research comparing human vs. AI therapist responses
  • Quality assurance testing of client simulations

Integration

The User therapist integrates with PatientHub's interactive interfaces:

  • Chainlit Web Demo: Provides a chat interface for human interaction
  • Command Line: Text-based interaction through the terminal
  • Custom Interfaces: Can be integrated with custom UIs