Package-level declarations

Types

Link copied to clipboard
class SpringAiModel @JvmOverloads constructor(val name: String, chatModel: ChatModel, coroutineContext: CoroutineContext = Dispatchers.IO) : Model

A Model backed by a Spring AI ChatModel, letting any Spring AI chat provider (OpenAI, Anthropic, Bedrock, Ollama, ...) drive an ADK agent.

Link copied to clipboard
class SpringAiTool(toolCallback: ToolCallback) : BaseTool

Exposes a Spring AI ToolCallback as an ADK BaseTool, so an existing Spring AI tool can be used by any ADK Kotlin agent and model. Name, description, and input schema come from the callback's ToolDefinition; ADK owns the tool loop, so run serializes the arguments, invokes the callback on the IO dispatcher (the call is blocking), and decodes the JSON result. The ADK ToolContext is passed to the callback under ADK_TOOL_CONTEXT_KEY, and a returnDirect callback maps to ADK's skipSummarization.

Link copied to clipboard
class SpringAiToolset(toolCallbackProvider: ToolCallbackProvider) : Toolset

Exposes every Spring AI tool from a ToolCallbackProvider as an ADK Toolset, so a dependency-injected provider (for example a Spring bean) contributes its tools to an ADK agent. Each callback is wrapped with SpringAiTool, and the provider is queried per request so tools it adds later are picked up.