AdkApiServer

open class AdkApiServer(config: AdkServerConfig)

The Development UI stays unmounted unless AdkServerConfig.webUiEnabled or the adk.web.ui.enabled property asks for it.

AdkDevServer widens the surface with the development-only endpoints. start and stop are safe to call from different threads; a stop arriving while start is still binding aborts it, and a failed start leaves the engine recorded, so call stop before retrying.

Inheritors

Constructors

Link copied to clipboard
constructor(config: AdkServerConfig)

Functions

Link copied to clipboard
fun start(wait: Boolean = false)

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
fun stop()

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.