Designing the office manager
This is the capstone! You will build an Office Manager agent that combines every concept from the workshop: memory, tools with function calling, an autonomous loop, modular workflows, error handling, and human-in-the-loop safety gates.
Office manager agent architecture
# Office Manager tools
def get_emails():
return json.dumps([
{"sender": "Boss",
"subject": "Meeting tomorrow?"},
{"sender": "Mom", "subject": "Hi!"}
])
def send_email(to: str, body: str):
print(f"EMAIL SENT to {to}: {body}")
return "Success."
def schedule_meeting(time: str):
print(f"CALENDAR: Scheduled for {time}")
return "Success."Three tools: get_emails (safe, read-only), send_email (sensitive, needs approval), schedule_meeting (safe, auto-execute).
Matching exercise: Map each component to its module
Loading practice…
Quiz: Quiz
Loading practice…