TrackingHeaders

Headers that let Google APIs attribute model calls to ADK, in the format all ADK SDKs use. A header value is a space-separated list of name/version tags.

Properties

Link copied to clipboard
const val ADK_TAG: String

ADK's own tag: google-adk/<ADK version>.

Link copied to clipboard

The x-goog-api-client and user-agent headers, both set to VALUE.

Link copied to clipboard

ADK_TAG followed by gl-kotlin/<Kotlin version>, for clients that send no language tag.

Functions

Link copied to clipboard

Returns headers with each tracking header, matched case-insensitively, followed by every tag of VALUE whose name it lacks.