AdkDevServer
The local development server: AdkApiServer plus the endpoints the Dev UI drives, and the UI.
These endpoints read agent state and run debugging code, so this variant belongs on a development machine; deploy AdkApiServer instead. Non-loopback peers and proxied or tunneled requests are rejected even when AdkServerConfig.host is widened, unless remote access is explicitly enabled.
Functions
Link copied to clipboard
Starts the server on AdkServerConfig.host and AdkServerConfig.port; when wait is true, blocks until the server stops. Calling it again before stop does nothing, even after a failed start.
Link copied to clipboard
Stops the engine, which waits for adkApiModule to flush AdkServerConfig.sessionService and buffered telemetry: up to 3 seconds more for a session flush that honors cancellation.