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

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