Digital Employee Supervisor

Overview

A Digital Employee Supervisor represents the human point-of-contact a Digital Employee can route decisions or blockers to.

In Digital Employee Core, a supervisor is modeled on the identity:

  • DigitalEmployeeIdentity.supervisor

  • DigitalEmployeeSupervisor(name=..., email=...)

Minimal Setup

1) Create a supervisor

import os

from digital_employee_core import DigitalEmployeeSupervisor

supervisor = DigitalEmployeeSupervisor(
    name=os.getenv("SUPERVISOR_NAME", ""),
    email=os.getenv("SUPERVISOR_EMAIL", ""),
)

2) Attach the supervisor to the identity

from digital_employee_core import DigitalEmployeeIdentity, DigitalEmployeeJob

job = DigitalEmployeeJob(
    title="Operations Assistant",
    description="A digital employee that can escalate to a supervisor when blocked",
    instruction=(
        "You help with operational tasks. "
        "If a tool fails or you encounter a critical blocker, follow the escalation protocol."
    ),
)

identity = DigitalEmployeeIdentity(
    name="Ops Assistant - Example",
    email="ops.assistant@example.com",
    job=job,
    supervisor=supervisor,
)

Where It Is Used

Last updated