examples/python-sdk/meeting_swarm_subagent_modal_minimal.py.
It is the main “real app” reference for the current SDK shape.
What it demonstrates
App(...)with stableproject_name- subagent-first composition with
@app.subagent(...) - API-triggered subagent hook ingress (
subagent_hook(...)) - cron workflow (
@app.subagent(..., schedule=cron(...))) - explicit command hook (
@app.hook(..., command="python3 health_check.py")) - runtime files + startup entrypoint via
runtime(...),local_file(...),entrypoint(...)
Declared subagents/workflows
Primary subagents:booking-coordinatorcalendar-strategistfollowup-writer
swarm-health-hook(scheduled command execution)
Why this is a good baseline
- Uses only primitives that are stable in current SDK implementation
- Exercises both task-style and command-style workflow paths
- Exercises both runtime invoke (
run) and ingress (events) behavior - Includes local-only route (
@app.local_entrypoint()) for fast iteration
Run it
Test ingress path
Pair with local web harness
To test the same bot through a browser/webhook bridge, use:/examples/investor-booking-web
workflow_id, event_id, and payloads.
