Skip to content

google/adk-kotlin

https://skillcdn.ai/gh/google/adk-kotlin

Connect this address to your AI to use this skill. How to connect

  • Unverified
  • Default branchmain
  • Commit07e173f
  • LicenseApache-2.0
  • Searchwords

Showing commit 07e173f

The newest commit, 93bad11, is being indexed. Until it is ready, this page and every agent are served the last indexed commit.
View on GitHub

adk-kotlin-agent-builder

Builds ADK Kotlin agents: LlmAgent with instructions and tools, @Tool function tools generated by KSP, hand-written tools, agent-as-tool and MCP, Sequential / Parallel / Loop agents and LLM transfer between sub-agents, callbacks and plugins, session state, artifacts, long-running and confirmation-gated tools, running with InMemoryRunner, and unit tests with a fake Model. Use when asked to create an agent, add or fix a tool, branch or loop between agents, run steps in parallel, pause for user approval, read or write session state, or test an agent. Don't use for build, dependency and CI questions (use adk-kotlin-setup).

Path
.agents/skills/adk-kotlin-agent-builder/SKILL.md
License
Apache-2.0

Warnings for the author

  • Not listed or searched: a skill under a hidden directory is discoverable only when the repository has no visible skill.

ADK Kotlin Agent Builder

Checked against main after release 1.1.0 (September 2026).

The references teach patterns and the rules behind most failures; they are not an API listing. The API is close to adk-python but not identical. If a symbol does not resolve, read core/src/*/kotlin/com/google/adk/kt/ (JVM- and Android-only APIs such as MCP and the persistent session services live outside commonMain) rather than guessing a neighbouring name. When a reference and the code disagree, the code is right.

References

TaskReference
First agent, running it, reading events, streaminggetting-started.md
The rules that cause most runtime failuresbest-practices.md
@Tool, hand-written tools, agent-as-tool, MCP, long-running and confirmation-gated toolstools.md
Sequential, parallel and loop agents, LLM transferworkflow-agents.md
Callbacks and pluginscallbacks-and-plugins.md
State, sessions, artifacts, memorystate-sessions-artifacts.md
Tests with a fake modeltesting.md

For Java callers, copy the patterns in examples/java/, a javac-only module that keeps the Java surface working.

Coming from adk-python

PythonKotlin
LlmAgent(instruction="...")LlmAgent(instruction = Instruction("..."))
FunctionTool(func)@Tool on the function (KSP generates the tool), or subclass FunctionTool
tool_context.state[k] = vcontext.updateState(k, v); read with context.state[k]
ToolContext, CallbackContextContext
BaseToolsetToolset
LongRunningFunctionToolisLongRunning = true, or @Tool(isLongRunning = true)
output_schema=MyModeloutputSchema = Schema(...), built by hand
runner.run_async(...)runner.runAsync(...), a Flow<Event>
event.is_final_response()event.isFinalResponse

Files of this skill

Browse all supporting files