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

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