AdkWebServer
class AdkWebServer(port: Int = AdkServerConfig.DEFAULT_PORT, sessionService: SessionService, artifactService: ArtifactService, agentLoader: AgentLoader, apiServerSpanExporter: ApiServerSpanExporter, captureMessageContent: Boolean = false, plugins: List<Plugin> = emptyList())
Deprecated
Use AdkDevServer for local development, or AdkApiServer to serve the runtime contract headlessly. Both bind loopback, so a container deployment has to set AdkServerConfig.host to 0.0.0.0, which this class does for you.
Embedded Ktor server exposing the ADK dev/web API.
Parameters
captureMessageContent
When true, the server records prompt/response content into telemetry spans so the Dev UI trace view can display it. This may capture PII and increase span size, so it defaults to false; enable it only for local development.
Constructors
Link copied to clipboard
constructor(port: Int = AdkServerConfig.DEFAULT_PORT, sessionService: SessionService, artifactService: ArtifactService, agentLoader: AgentLoader, apiServerSpanExporter: ApiServerSpanExporter, captureMessageContent: Boolean = false, plugins: List<Plugin> = emptyList())