enableDebugRoutes

View as MarkdownOpen in Claude

Enable debug routes on the agent’s Hono server for development and testing. In the TypeScript SDK, debug routes (health, ready, debug_events) are automatically registered in getApp(); this method exists as a no-op stub for API parity with the Python SDK.

Parameters

None.

Returns

AgentBase — Returns this for method chaining.

Example

1import { AgentBase } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'dev-agent', route: '/dev' });
4agent.setPromptText('You are a helpful assistant.');
5agent.enableDebugRoutes();
6await agent.serve();