Package-level declarations

Types

Link copied to clipboard

Marks an API that exists only to make ADK usable from Java, such as the fluent builders. Kotlin callers should use the primary constructor and named arguments instead; opting in acknowledges that you specifically need the Java-facing surface. Java callers are unaffected, since the opt-in requirement is enforced only by the Kotlin compiler.

Link copied to clipboard

Marks ADK's context caching APIs as experimental: their shape and semantics may change in future releases without prior notice.

Link copied to clipboard
annotation class Param(val description: String = "")

Annotates a parameter of a function annotated with Tool to provide explicit metadata.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Tool(val name: String = "", val description: String = "", val requireConfirmation: Boolean = false, val isLongRunning: Boolean = false)

Annotates a function to be exposed as an executable tool by the Google ADK Kotlin. KSP will generate a corresponding com.google.adk.kt.tools.FunctionTool wrapper for annotated functions.