AdkServerConfig
What an AdkApiServer or AdkDevServer needs to serve a set of agents over HTTP.
Constructors
Types
Fluent builder for AdkServerConfig, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Properties
The agents to serve. Deprecated: set appLoader instead. Set exactly one of the two.
Cross-origin browser origins allowed in addition to same-origin requests (literal origins, "*", or "regex:<pattern>" entries, matching ADK Python).
Whether non-loopback peers and proxied or tunneled requests are accepted. When null, AdkDevServer rejects non-loopback and proxied callers regardless of host, while AdkApiServer rejects them when host is loopback (127.0.0.1 by default) and accepts them when host is widened explicitly (such as 0.0.0.0 behind an authenticating proxy).
The apps to serve. Set exactly one of agentLoader and this.
The avatar for /run_live sessions that ask for VIDEO. Null gives such a session the prebuilt Kai avatar, since the Live API rejects video output without one; a session without VIDEO gets no avatar.
Whether responses use the strict camelCase spelling. Off leaves every response as it is today: /version emits language_version and the development trace endpoints emit span_id and its siblings, which the Development UI reads under those names. Every other response has always been camelCase either way. Null means unset, so the default can move to true in a later release without overriding a deployment that pinned it; adk.wire.camelcase.enforced overrides it either way, so a deployment that cannot change code can still choose.
When true the server records prompt and response content into telemetry spans so the Dev UI trace view can display it. This may capture PII, so it defaults to false; enable it only for local development.
Interface AdkApiServer and AdkDevServer bind to; IPv4 loopback by default, since these endpoints are unauthenticated; nothing listens on ::1. Installing a module into your own engine binds whatever that engine was given, not this.
Whether to mount /apps/{appName}/app-info, which reports every agent's instruction and tool declarations; off when unset, since that is more than a deployment needs to publish. adk.app.info.enabled overrides it either way, as the Development UI property does, so a deployment that cannot change code can still turn the endpoint off. Experimental: setting it requires @OptIn(ExperimentalAppInfoFeature::class).
Whether to mount the Development UI; null leaves the choice to the server variant, off for AdkApiServer and on for AdkDevServer. The adk.web.ui.enabled property overrides it either way, so that a deployment which cannot change code can still turn the UI off; the corollary is that an ambient property beats an explicit setting here.
Functions
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.