Digital Employee Supervisor
Overview
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