serve
Start a Hono web server (via @hono/node-server) to serve this agent. The server
exposes endpoints for SWML document delivery, SWAIG function execution,
post-prompt summary handling, and health checks.
The server automatically includes:
- SWML document endpoint at the agent’s route
- SWAIG function dispatch at
{route}/swaig - Post-prompt handler at
{route}/post_prompt /healthand/readyhealth check endpoints- Security headers middleware
- Basic Auth middleware
run() is an alias for serve(). Both methods are equivalent in the
TypeScript SDK.
Parameters
None.
Returns
Promise<void> — Resolves once the server is running.