HttpOptions

data class HttpOptions(val baseUrl: String? = null, val apiVersion: String? = null, val headers: Map<String, String>? = null, val timeout: ERROR CLASS: Symbol not found for Duration?? = null)

ADK-owned HTTP transport options for calls a com.google.adk.kt.models.Model makes to its backend.

This is ADK's own type rather than the backend SDK's, so that configuration surfaces such as com.google.adk.kt.agents.ContextCacheConfig stay independent of any particular backend. Implementations translate it to whatever their transport expects.

Constructors

Link copied to clipboard
constructor(baseUrl: String? = null, apiVersion: String? = null, headers: Map<String, String>? = null, timeout: ERROR CLASS: Symbol not found for Duration?? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for HttpOptions, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Version of the API to use. null uses the backend's default.

Link copied to clipboard

Base URL of the service endpoint. null uses the backend's default.

Link copied to clipboard

Additional HTTP headers to send with the request.

Link copied to clipboard
val timeout: ERROR CLASS: Symbol not found for Duration??

Request timeout, e.g. 10.seconds. null uses the backend's default.

Functions

Link copied to clipboard

Returns timeout in whole milliseconds, or null. Java cannot read timeout (mangled).