AgentsAgentBase

enable_debug_routes

View as MarkdownOpen in Claude

Enable debug routes on the agent’s FastAPI server for development and testing. Debug routes are registered automatically during route setup; this method exists as an explicit opt-in for backward compatibility.

Parameters

None.

Returns

AgentBase — Returns self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="dev-agent", route="/dev")
4agent.set_prompt_text("You are a helpful assistant.")
5agent.enable_debug_routes()
6agent.serve()