GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Why Go
  • Case Studies
  • Use Cases
  • Security
  • Learn
  • Effective Go
  • Go User Manual
  • Standard library
  • Release Notes
  • API
  • Packages
  • Recorded Talks
  • Meetups
  • Conferences

This view

  • Original page
  • New address

GeezerVison is showing pkg.go.dev β€” adk module - google.golang.org/adk/v2 - Go Packages

Details

  • checked Valid go.mod file

    The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.

  • checked Redistributable license

    Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.

  • checked Tagged version

    Modules with tagged versions give importers more predictable builds.

  • checked Stable version

    When a project reaches major version v1 it is considered stable.

  • Learn more about best practices

Repository

github.com/google/adk-go

Links

  • Open Source Insights Logo Open Source Insights

README ΒΆ

Agent Development Kit (ADK) for Go

License Go Doc Nightly Check r/agentdevelopmentkit View Code Wiki

An open-source, code-first Go toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.

Important Links: Docs & Samples & Python ADK & Java ADK & Kotlin ADK & TypeScript ADK & ADK Web.

Agent Development Kit (ADK) is a flexible and modular framework that applies software development principles to AI agent creation. It is designed to simplify building, deploying, and orchestrating agent workflows, from simple tasks to complex systems. While optimized for Gemini, ADK is model-agnostic, deployment-agnostic, and compatible with other frameworks.

This Go version of ADK is ideal for developers building cloud-native agent applications, leveraging Go's strengths in concurrency and performance.


✨ Key Features

  • Idiomatic Go: Designed to feel natural and leverage the power of Go.
  • Rich Tool Ecosystem: Utilize pre-built tools, custom functions, or integrate existing tools to give agents diverse capabilities.
  • Code-First Development: Define agent logic, tools, and orchestration directly in Go for ultimate flexibility, testability, and versioning.
  • Modular Multi-Agent Systems: Design scalable applications by composing multiple specialized agents.
  • Deploy Anywhere: Easily containerize and deploy agents, with strong support for cloud-native environments like Google Cloud Run.

πŸš€ Installation

ADK Go requires Go 1.26.10 or later (see go.mod).

To add ADK Go to your project, run:

go get google.golang.org/adk/v2

πŸ“– Docs for AI coding agents

adk.dev/llms.txt is a machine-readable index of the ADK documentation, and adk.dev/llms-full.txt is the same documentation as a single file. Both are generated from adk-docs and include the Go API reference and samples, so you can point a coding agent at either one for context:

Plan and implement an agent that reviews customer issues and generates a report. Use the ADK Go framework, referring to https://adk.dev/llms-full.txt for sample code.

To work on this repository rather than build with it, see AGENTS.md.

πŸ“„ License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

The exception is internal/httprr - see its LICENSE file.

Directories ΒΆ

Path Synopsis
agent
Package agent provides entities to build agents using ADK.
Package agent provides entities to build agents using ADK.
llmagent
Package llmagent provides an LLM-based agent.
Package llmagent provides an LLM-based agent.
remoteagent
Package remoteagent allows using a remote ADK agents.
Package remoteagent allows using a remote ADK agents.
remoteagent/v2
Package remoteagent allows using a remote ADK agents.
Package remoteagent allows using a remote ADK agents.
workflowagent
Package workflowagent adapts a workflow.Workflow (a node/graph workflow) to the agent.Agent interface, so a graph can be run by a runner.Runner like any other agent.
Package workflowagent adapts a workflow.Workflow (a node/graph workflow) to the agent.Agent interface, so a graph can be run by a runner.Runner like any other agent.
workflowagents/loopagent
Package loopagent provides an agent that repeatedly runs its sub-agents for a specified number of iterations or until termination condition is met.
Package loopagent provides an agent that repeatedly runs its sub-agents for a specified number of iterations or until termination condition is met.
workflowagents/parallelagent
Package parallelagent provides an agent that runs its sub-agents in parallel.
Package parallelagent provides an agent that runs its sub-agents in parallel.
workflowagents/sequentialagent
Package sequentialagent provides an agent that runs its sub-agents in a sequence.
Package sequentialagent provides an agent that runs its sub-agents in a sequence.
agentregistry
Package agentregistry provides a client for the Google Cloud Agent Registry (agentregistry.googleapis.com), a governed catalog of A2A agents, MCP servers, and model endpoints.
Package agentregistry provides a client for the Google Cloud Agent Registry (agentregistry.googleapis.com), a governed catalog of A2A agents, MCP servers, and model endpoints.
artifact
Package artifact provides a service for managing artifacts.
Package artifact provides a service for managing artifacts.
gcsartifact
Package gcsartifact provides a Google Cloud Storage (GCS) artifact.Service.
Package gcsartifact provides a Google Cloud Storage (GCS) artifact.Service.
auth
Package auth provides a small, idiomatic authentication layer for ADK Go.
Package auth provides a small, idiomatic authentication layer for ADK Go.
gcp
Package gcp resolves per-user Google Cloud credentials from the Agent Identity and IAM Connector credential services.
Package gcp resolves per-user Google Cloud credentials from the Agent Identity and IAM Connector credential services.
client
agentengine
Package agentengine calls an agent deployed on Vertex AI Agent Runtime (a reasoning engine) through its stream-query method and exposes the resulting events as an iterator.
Package agentengine calls an agent deployed on Vertex AI Agent Runtime (a reasoning engine) through its stream-query method and exposes the resulting events as an iterator.
cmd
adkgo command
adkgo is a CLI tool to help deploy and test an ADK application.
adkgo is a CLI tool to help deploy and test an ADK application.
adkgo/internal/deploy
Package deploy allows to run deployment-related subcommands.
Package deploy allows to run deployment-related subcommands.
adkgo/internal/deploy/agentengine
Package agentengine handles command line parameters and execution logic for agentengine deployment.
Package agentengine handles command line parameters and execution logic for agentengine deployment.
adkgo/internal/deploy/cloudrun
Package cloudrun handles command line parameters and execution logic for cloudrun deployment.
Package cloudrun handles command line parameters and execution logic for cloudrun deployment.
adkgo/internal/root
Package root handles command line parameters
Package root handles command line parameters
internal/adkcli command
launcher
Package launcher provides ways to interact with agents.
Package launcher provides ways to interact with agents.
launcher/agentengine
Package agentengine provides easy way to deploy to AgentEngine.
Package agentengine provides easy way to deploy to AgentEngine.
launcher/console
Package console provides a simple way to interact with an agent from console application.
Package console provides a simple way to interact with an agent from console application.
launcher/full
Package full provides easy way to play with ADK with all available options
Package full provides easy way to play with ADK with all available options
launcher/internal/telemetry
Package telemetry contains the internal shared logic for initializing telemetry in launchers.
Package telemetry contains the internal shared logic for initializing telemetry in launchers.
launcher/prod
Package prod provides easy way to play with ADK with all available options without development support (no console, no ADK Web UI) including only production options like the REST API and A2A support.
Package prod provides easy way to play with ADK with all available options without development support (no console, no ADK Web UI) including only production options like the REST API and A2A support.
launcher/universal
Package universal provides an umbrella over launchers (console and web).
Package universal provides an umbrella over launchers (console and web).
launcher/web
Package web provides a way to run ADK using a web server.
Package web provides a way to run ADK using a web server.
launcher/web/a2a
Package a2a provides a sublauncher that provides A2A capabilities.
Package a2a provides a sublauncher that provides A2A capabilities.
launcher/web/agentengine
Package agentengine provides a sublauncher that provides web interface as required by Agent Engine
Package agentengine provides a sublauncher that provides web interface as required by Agent Engine
launcher/web/api
Package api provides a sublauncher that adds ADK REST API capabilities.
Package api provides a sublauncher that adds ADK REST API capabilities.
launcher/web/triggers/eventarc
Package eventarc provides a sublauncher that adds Eventarc trigger capabilities to ADK web server.
Package eventarc provides a sublauncher that adds Eventarc trigger capabilities to ADK web server.
launcher/web/triggers/internal/triggerauth
Package triggerauth holds the OIDC flags shared by the Pub/Sub and Eventarc trigger sublaunchers.
Package triggerauth holds the OIDC flags shared by the Pub/Sub and Eventarc trigger sublaunchers.
launcher/web/triggers/pubsub
Package pubsub provides a sublauncher that adds PubSub trigger capabilities to ADK web server.
Package pubsub provides a sublauncher that adds PubSub trigger capabilities to ADK web server.
launcher/web/webui
Package webui provides a sublauncher that adds ADK Web UI capabilities.
Package webui provides a sublauncher that adds ADK Web UI capabilities.
examples
a2a command
Package main provides an example ADK agent that uses A2A.
Package main provides an example ADK agent that uses A2A.
agentengine command
Package provides a quickstart for Agent Engine deployment
Package provides a quickstart for Agent Engine deployment
agentregistry/a2a command
Package main closes the Agent Registry loop for A2A: it serves an agent over A2A, resolves that same agent back out of the registry, and exchanges a message with it.
Package main closes the Agent Registry loop for A2A: it serves an agent over A2A, resolves that same agent back out of the registry, and exchanges a message with it.
agentregistry/bind command
Package main builds an LlmAgent from a capability rather than an address: you name the tool you need, and the Google Cloud Agent Registry decides which MCP server provides it.
Package main builds an LlmAgent from a capability rather than an address: you name the tool you need, and the Google Cloud Agent Registry decides which MCP server provides it.
agentregistry/discover command
Package main prints the A2A agents, MCP servers, and model endpoints registered in a Google Cloud Agent Registry.
Package main prints the A2A agents, MCP servers, and model endpoints registered in a Google Cloud Agent Registry.
anthropic command
Package main runs a non-interactive ADK agent backed by Anthropic Claude on either Vertex AI or the Anthropic API, sending an inline PNG image and invoking a function tool during the turn.
Package main runs a non-interactive ADK agent backed by Anthropic Claude on either Vertex AI or the Anthropic API, sending an inline PNG image and invoking a function tool during the turn.
bidi command
Package provides a quickstart ADK agent.
Package provides a quickstart ADK agent.
bidi/sequential command
Package main provides an example of using sequential agents with real-time bidirectional streaming.
Package main provides an example of using sequential agents with real-time bidirectional streaming.
bidi/streamingtool command
Package provides a quickstart ADK agent.
Package provides a quickstart ADK agent.
compaction command
Package main provides an example ADK agent with context compaction enabled.
Package main provides an example ADK agent with context compaction enabled.
compactionrecall command
Package main measures whether a compaction config still lets the agent answer.
Package main measures whether a compaction config still lets the agent answer.
internal/imagegen
Package imagegen contains helpers shared by image generation examples.
Package imagegen contains helpers shared by image generation examples.
mcp command
Package provides an example ADK agent that uses MCP tools.
Package provides an example ADK agent that uses MCP tools.
multiagent/collaboration command
Package main demonstrates a collaborative agent team that uses all three LLM agent modes together: the root llmagent.ModeChat coordinator delegates to a llmagent.ModeSingleTurn sub-agent for autonomous lookups and to a llmagent.ModeTask sub-agent for multi-turn data collection.
Package main demonstrates a collaborative agent team that uses all three LLM agent modes together: the root llmagent.ModeChat coordinator delegates to a llmagent.ModeSingleTurn sub-agent for autonomous lookups and to a llmagent.ModeTask sub-agent for multi-turn data collection.
multiagent/single_turn command
Package main demonstrates how a "single_turn" mode agent can act as an autonomous sub-agent to an LLM agent, utilizing schemas and tools without ever interacting with the user.
Package main demonstrates how a "single_turn" mode agent can act as an autonomous sub-agent to an LLM agent, utilizing schemas and tools without ever interacting with the user.
multiagent/task_sub_agent command
Package main demonstrates how a "task mode" agent can act as a sub-agent to an LLM agent, effectively extracting structured data from a conversational flow.
Package main demonstrates how a "task mode" agent can act as a sub-agent to an LLM agent, effectively extracting structured data from a conversational flow.
openai/completions command
Package main demonstrates an ADK agent on OpenAI's Chat Completions API, which is the surface most OpenAI-compatible providers implement.
Package main demonstrates an ADK agent on OpenAI's Chat Completions API, which is the surface most OpenAI-compatible providers implement.
openai/responses command
Package demonstrates an ADK agent backed by an OpenAI (or OpenAI-compatible) chat model instead of Gemini.
Package demonstrates an ADK agent backed by an OpenAI (or OpenAI-compatible) chat model instead of Gemini.
quickstart command
Package provides a quickstart ADK agent.
Package provides a quickstart ADK agent.
rest command
Package provides an example ADK REST API server with an ADK agent.
Package provides an example ADK REST API server with an ADK agent.
skills command
Package provides an example of using skills via skill toolset.
Package provides an example of using skills via skill toolset.
telemetry command
Package provides a quickstart ADK agent with telemetry.
Package provides a quickstart ADK agent with telemetry.
toolconfirmation command
Package provides an example console app for tool confirmation.
Package provides an example console app for tool confirmation.
tools/loadartifacts command
Package provides an example ADK agent that loads and describes artifacts.
Package provides an example ADK agent that loads and describes artifacts.
tools/loadmemory command
Package main provides an example ADK agent that uses the load_memory and preload_memory tools to retrieve memories from previous conversations.
Package main provides an example ADK agent that uses the load_memory and preload_memory tools to retrieve memories from previous conversations.
tools/multipletools command
Package demonstrates a workaround for using Google Search tool with other tools.
Package demonstrates a workaround for using Google Search tool with other tools.
tools/vertexairagtool command
Package main provides an example ADK agent that grounds its answers on a Vertex AI RAG corpus using the exp/vertexairag tool.
Package main provides an example ADK agent that grounds its answers on a Vertex AI RAG corpus using the exp/vertexairag tool.
toolsearch command
Package provides an example of hiding tools behind search_tools so the model loads a tool's declaration only when it needs that tool.
Package provides an example of hiding tools behind search_tools so the model loads a tool's declaration only when it needs that tool.
vertexai command
vertexai/imagegenerator command
Package main demonstrates how to create an agent that can generate images using Vertex AI's Imagen model, save them as artifacts, and then save them to the local filesystem.
Package main demonstrates how to create an agent that can generate images using Vertex AI's Imagen model, save them as artifacts, and then save them to the local filesystem.
vertexai/vertexengine command
web command
web/agents
Package agents contains sample agents to demonstrate ADK Web Capabilities.
Package agents contains sample agents to demonstrate ADK Web Capabilities.
workflow/basic command
workflow/complex command
Command complex demonstrates a fan-out / fan-in research pipeline built on the graph workflow engine: three researcher agents run concurrently, a JoinNode barrier gathers their findings, a function node formats them, and a single-turn synthesis agent merges everything into one structured report.
Command complex demonstrates a fan-out / fan-in research pipeline built on the graph workflow engine: three researcher agents run concurrently, a JoinNode barrier gathers their findings, a function node formats them, and a single-turn synthesis agent merges everything into one structured report.
workflow/dynamic/basic command
Dynamic workflow example: a parent dynamic node orchestrates a single child via workflow.RunNode.
Dynamic workflow example: a parent dynamic node orchestrates a single child via workflow.RunNode.
workflow/dynamic/hitl command
Dynamic workflow + HITL example: a dynamic orchestrator pauses for human input via workflow.RunNode, then resumes and greets the user.
Dynamic workflow + HITL example: a dynamic orchestrator pauses for human input via workflow.RunNode, then resumes and greets the user.
workflow/dynamic/llm command
Dynamic workflow + LLM example: a dynamic orchestrator calls a single LlmAgent-backed node via workflow.RunNode.
Dynamic workflow + LLM example: a dynamic orchestrator calls a single LlmAgent-backed node via workflow.RunNode.
workflow/dynamic/use_as_output command
Conditional output delegation in a dynamic workflow.
Conditional output delegation in a dynamic workflow.
workflow/hitl_rerun command
hitl_rerun shows the re-entry HITL pattern: a single emitting FunctionNode both pauses for input and produces the final output.
hitl_rerun shows the re-entry HITL pattern: a single emitting FunctionNode both pauses for input and produces the final output.
workflow/hitl_simple command
hitl_simple is the minimal end-to-end HITL workflow for verifying the console launcher's pause/resume support.
hitl_simple is the minimal end-to-end HITL workflow for verifying the console launcher's pause/resume support.
workflow/routing/int command
Command int demonstrates numeric routing with workflow.IntRoute / workflow.MultiRoute: a node rolls a random integer 1..10 and the engine dispatches to one of three branches based on the value.
Command int demonstrates numeric routing with workflow.IntRoute / workflow.MultiRoute: a node rolls a random integer 1..10 and the engine dispatches to one of three branches based on the value.
workflow/routing/llm command
Command llm demonstrates LLM-driven routing: an LLM agent classifies the user's message into one word, and a downstream node turns that into an Event.Routes value dispatched via workflow.StringRoute.
Command llm demonstrates LLM-driven routing: an LLM agent classifies the user's message into one word, and a downstream node turns that into an Event.Routes value dispatched via workflow.StringRoute.
workflow/routing/string command
Command string demonstrates string routing with workflow.StringRoute: a node classifies the user's message into a category and the engine dispatches to one of three branches.
Command string demonstrates string routing with workflow.StringRoute: a node classifies the user's message into a category and the engine dispatches to one of three branches.
workflowagents/loop command
Package demonstrates a workflow agent that runs a loop agent.
Package demonstrates a workflow agent that runs a loop agent.
workflowagents/parallel command
Package demonstrates a workflow agent that runs sub-agents in parallel.
Package demonstrates a workflow agent that runs sub-agents in parallel.
workflowagents/sequential command
Package demonstrates a workflow agent that runs sub-agents sequentially.
Package demonstrates a workflow agent that runs sub-agents sequentially.
workflowagents/sequentialCode command
Package demonstrates a coding workflow agent that runs sub-agents sequentially.
Package demonstrates a coding workflow agent that runs sub-agents sequentially.
exp
Package exp holds ADK Go features that are not yet stable API, one subpackage per feature.
Package exp holds ADK Go features that are not yet stable API, one subpackage per feature.
appinfo
Package appinfo implements GET /apps/{app_name}/app-info, which describes an ADK app without running it: its root agent, and every LLM agent reachable from that root with its description, instruction, tools and sub-agents.
Package appinfo implements GET /apps/{app_name}/app-info, which describes an ADK app without running it: its root agent, and every LLM agent reachable from that root with its description, instruction, tools and sub-agents.
authflow
Package authflow lets a tool ask the end user for a credential, such as an OAuth2 sign-in, and read what the user's answer produced.
Package authflow lets a tool ask the end user for a credential, such as an OAuth2 sign-in, and read what the user's answer produced.
classifier
Package classifier defines the experimental Classifier interface and the typed question and answer values shared across classifier implementations.
Package classifier defines the experimental Classifier interface and the typed question and answer values shared across classifier implementations.
classifier/typesafe
Package typesafe implements google.golang.org/adk/v2/exp/classifier.Classifier for TypeSafe's Jev decision models via the /v1/systemone HTTP API.
Package typesafe implements google.golang.org/adk/v2/exp/classifier.Classifier for TypeSafe's Jev decision models via the /v1/systemone HTTP API.
vertexairagtool
Package vertexairagtool provides a tool that grounds an agent's responses on a Vertex AI RAG (Retrieval-Augmented Generation) corpus.
Package vertexairagtool provides a tool that grounds an agent's responses on a Vertex AI RAG (Retrieval-Augmented Generation) corpus.
internal
adkcontext
Package adkcontext holds the private context key under which an ADK context registers its invocation identity, so it can be recovered from a derived context.Context via agent.IdentityFromContext.
Package adkcontext holds the private context key under which an ADK context registers its invocation identity, so it can be recovered from a derived context.Context via agent.IdentityFromContext.
agent
agent/compactionctx
Package compactionctx carries the context-compaction runtime from the runner down to the request processors that need it.
Package compactionctx carries the context-compaction runtime from the runner down to the request processors that need it.
agent/parentmap
agent/remoteagent
agent/runconfig
artifact
artifact/tests
authhandler
Package authhandler runs the server side of the end-user OAuth2 consent flow: it builds the sign-in request ADK sends to the client, stores the client's answer, and exchanges its code for tokens.
Package authhandler runs the server side of the end-user OAuth2 consent flow: it builds the sign-in request ADK sends to the client, stores the client's answer, and exchanges its code for tokens.
cli/util
Package util provides helper functions for execution of commands and presenting their stderr and stdout in uniform way.
Package util provides helper functions for execution of commands and presenting their stderr and stdout in uniform way.
compactioninternal
Package compactioninternal implements the context-compaction algorithms: choosing which events to summarize, substituting summaries into a prompt, and recovering function calls that a summary swallowed.
Package compactioninternal implements the context-compaction algorithms: choosing which events to summarize, substituting summaries into a prompt, and recovering function calls that a summary swallowed.
compactionvalidate
Package compactionvalidate answers one question for every serving surface: can this compaction config actually serve the applications behind it.
Package compactionvalidate answers one question for every serving surface: can this compaction config actually serve the applications behind it.
configurable
configutils.go provides utility functions for working with configurable agents.
configutils.go provides utility functions for working with configurable agents.
configurable/conformance
configurable/conformance/recordplugin
configurable/conformance/replayplugin
configurable/conformance/replayplugin/recording
context
converters
httprr
Package httprr implements HTTP record and replay, mainly for use in tests.
Package httprr implements HTTP record and replay, mainly for use in tests.
llminternal
llminternal/converters
llminternal/googlellm
memory
originguard
Package originguard decides whether an HTTP request or WebSocket upgrade may be served, from its Origin and Host headers.
Package originguard decides whether an HTTP request or WebSocket upgrade may be served, from its Origin and Host headers.
plugininternal
plugininternal/plugincontext
ranksearch
Package ranksearch provides a generic, dependency-free BM25 ranked search over named items, with exact selection, regex matching, a relevance floor, result limits, and optional name-list advertisement.
Package ranksearch provides a generic, dependency-free BM25 ranked search over named items, with exact selection, regex matching, a relevance floor, result limits, and optional name-list advertisement.
sessionutils
telemetry
Package telemetry implements telemetry for ADK.
Package telemetry implements telemetry for ADK.
telemetry/functionaltest
Package functionaltest holds the record/replay telemetry tests, the Go counterpart of adk-python's tests/unittests/telemetry/test_functional.py.
Package functionaltest holds the record/replay telemetry tests, the Go counterpart of adk-python's tests/unittests/telemetry/test_functional.py.
telemetry/functionaltest/scenarios/testcasedata
Package testcasedata is the data half of the functional telemetry tests: which scenario a case drives, and under which telemetry configuration.
Package testcasedata is the data half of the functional telemetry tests: which scenario a case drives, and under which telemetry configuration.
telemetry/functionaltest/scenarios/testcasedata/delegation
Package delegation is an llmagent delegating to another through agenttool, which runs the delegate in a runner of its own: adk-python's "agent_tool" scenario.
Package delegation is an llmagent delegating to another through agenttool, which runs the delegate in a runner of its own: adk-python's "agent_tool" scenario.
telemetry/functionaltest/scenarios/testcasedata/dynamicworkflow
Package dynamicworkflow is a workflow agent running a static node, then a dynamic node that delegates to two collaborative agents and runs a function node twice, the second time from the RunNode cache.
Package dynamicworkflow is a workflow agent running a static node, then a dynamic node that delegates to two collaborative agents and runs a function node twice, the second time from the RunNode cache.
telemetry/functionaltest/scenarios/testcasedata/streaming
Package streaming is an llmagent answering in two streamed chunks: adk-python's "streaming" scenario, STREAMING_TURNS, minus its tool call.
Package streaming is an llmagent answering in two streamed chunks: adk-python's "streaming" scenario, STREAMING_TURNS, minus its tool call.
telemetry/functionaltest/scenarios/testcasedata/toolcall
Package toolcall is an llmagent calling one function tool, then answering in text: adk-python's "agent" scenario, TOOL_CALLING_TURNS.
Package toolcall is an llmagent calling one function tool, then answering in text: adk-python's "agent" scenario, TOOL_CALLING_TURNS.
telemetry/functionaltest/scenarios/testcaseimpl
Package testcaseimpl turns a scenario from the testcasedata packages into the agents, models and tools it drives, and runs it through a real Runner.
Package testcaseimpl turns a scenario from the testcasedata packages into the agents, models and tools it drives, and runs it through a real Runner.
telemetry/telemetrytest
Package telemetrytest provides the helpers behind ADK's record/replay telemetry tests:
Package telemetrytest provides the helpers behind ADK's record/replay telemetry tests:
testutil
toolinternal
Package tool defines internal-only interfaces and logic for tools.
Package tool defines internal-only interfaces and logic for tools.
typeutil
Package typeutil is a collection of type handling utility functions.
Package typeutil is a collection of type handling utility functions.
utils
version
workflowinternal
workflowroute
Package workflowroute lets experimental workflow nodes (such as exp/classifier.Node) validate their outgoing edges during workflow.New without adding experimental hooks to the public workflow API.
Package workflowroute lets experimental workflow nodes (such as exp/classifier.Node) validate their outgoing edges during workflow.New without adding experimental hooks to the public workflow API.
workflowwalk
Package workflowwalk lets the experimental app-info endpoint (exp/appinfo) walk workflow graphs, and exists for that feature only.
Package workflowwalk lets the experimental app-info endpoint (exp/appinfo) walk workflow graphs, and exists for that feature only.
memory
Package memory defines the entities to interact with agent memory (long-term knowledge).
Package memory defines the entities to interact with agent memory (long-term knowledge).
vertexai
Package vertexai provides support for using MemoryBank provided by VertexAI
Package vertexai provides support for using MemoryBank provided by VertexAI
vertexairag
Package vertexairag provides a memory.Service backed by Vertex AI RAG corpora.
Package vertexairag provides a memory.Service backed by Vertex AI RAG corpora.
model
Package model defines the interfaces and data structures for interacting with LLMs.
Package model defines the interfaces and data structures for interacting with LLMs.
anthropicmodel
Package anthropicmodel implements the model.LLM interface for Anthropic Claude models served by the first-party Anthropic API and by Google Cloud Vertex AI (Agent Platform / Model Garden).
Package anthropicmodel implements the model.LLM interface for Anthropic Claude models served by the first-party Anthropic API and by Google Cloud Vertex AI (Agent Platform / Model Garden).
apigee
Package apigee provides an LLM implementation for calling Apigee proxy.
Package apigee provides an LLM implementation for calling Apigee proxy.
gemini
Package gemini implements the model.LLM interface for Gemini models.
Package gemini implements the model.LLM interface for Gemini models.
openaimodel
Package openaimodel provides a client for interacting with OpenAI's API.
Package openaimodel provides a client for interacting with OpenAI's API.
openaimodel/internal/completions
openaimodel/internal/responses
openaimodel/internal/shared
Package shared holds the parts of the OpenAI conversion that neither endpoint owns: schema normalisation, server-text handling, call-id tracking, the generation-config fields both reject, and the error sentinels both return.
Package shared holds the parts of the OpenAI conversion that neither endpoint owns: schema normalisation, server-text handling, call-id tracking, the generation-config fields both reject, and the error sentinels both return.
platform
Package platform provides seams for overriding system operations, such as reading the current time and generating unique IDs.
Package platform provides seams for overriding system operations, such as reading the current time and generating unique IDs.
plugin
Package plugin provides lifecycle hooks that observe and intercept an agent run, exposing Before*/After* callbacks for the run, agent, model, and tool stages.
Package plugin provides lifecycle hooks that observe and intercept an agent run, exposing Before*/After* callbacks for the run, agent, model, and tool stages.
functioncallmodifier
Package functioncallmodifier provides a plugin to modify function calls.
Package functioncallmodifier provides a plugin to modify function calls.
loggingplugin
Package loggingplugin provides a plugin that logs key invocation events (user messages, agent and model activity, tool calls, and errors) to the console for terminal-based debugging.
Package loggingplugin provides a plugin that logs key invocation events (user messages, agent and model activity, tool calls, and errors) to the console for terminal-based debugging.
retryandreflect
Package retryandreflect provides a plugin that provides self-healing, concurrent-safe error recovery for tool failures.
Package retryandreflect provides a plugin that provides self-healing, concurrent-safe error recovery for tool failures.
runner
Package runner provides a runtime for ADK agents.
Package runner provides a runtime for ADK agents.
server
Package server hosts protocol implementations to expose and serve ADK agents.
Package server hosts protocol implementations to expose and serve ADK agents.
adka2a
Package adka2a allows exposing ADK agents via A2A.
Package adka2a allows exposing ADK agents via A2A.
adka2a/v2
Package adka2a allows exposing ADK agents via A2A.
Package adka2a allows exposing ADK agents via A2A.
adkrest
Package adkrest provides an HTTP server for the ADK REST API.
Package adkrest provides an HTTP server for the ADK REST API.
adkrest/controllers
Package controllers contains the controllers for the ADK REST API.
Package controllers contains the controllers for the ADK REST API.
adkrest/controllers/triggers
Package triggers provides HTTP handlers that run an agent in response to external events such as Pub/Sub or Eventarc, retrying rate-limited runs with exponential backoff and jitter.
Package triggers provides HTTP handlers that run an agent in response to external events such as Pub/Sub or Eventarc, retrying rate-limited runs with exponential backoff and jitter.
adkrest/internal/fakes
Package fakes contains a fake implementation of different ADK services used for testing
Package fakes contains a fake implementation of different ADK services used for testing
adkrest/internal/models
Package models defines the data structures for the REST API.
Package models defines the data structures for the REST API.
adkrest/internal/routers
Package routers defines the HTTP routes for the ADK REST API.
Package routers defines the HTTP routes for the ADK REST API.
adkrest/internal/services
Package services contains services defined for the ADK-Web REST API.
Package services contains services defined for the ADK-Web REST API.
agentengine
Package agentengine brings functionality of serving commands for AgentEngine-deployed code.
Package agentengine brings functionality of serving commands for AgentEngine-deployed code.
agentengine/controllers
Package controllers implements the HTTP controllers for the Agent Engine API, dispatching query requests to registered method handlers.
Package controllers implements the HTTP controllers for the Agent Engine API, dispatching query requests to registered method handlers.
agentengine/controllers/method
Package method defines MethodHandler which is used to serve requests for an application deployed on agent engine.
Package method defines MethodHandler which is used to serve requests for an application deployed on agent engine.
agentengine/internal/helper
agentengine/internal/models
package models defines Request / Response models for generic Query and for more focused methods
package models defines Request / Response models for generic Query and for more focused methods
agentengine/internal/routers
Package routers defines the HTTP routes for the ADK REST API.
Package routers defines the HTTP routes for the ADK REST API.
authn
Package authn provides inbound HTTP authentication for the ADK REST API.
Package authn provides inbound HTTP authentication for the ADK REST API.
authz
Package authz provides authorization for the ADK REST API.
Package authz provides authorization for the ADK REST API.
session
Package session provides types to manage user sessions and their states.
Package session provides types to manage user sessions and their states.
compaction
Package compaction summarizes older session events so an agent's prompt stays small as its conversation grows.
Package compaction summarizes older session events so an agent's prompt stays small as its conversation grows.
database
Package database provides a session.Service backed by a relational database (for example PostgreSQL, Spanner, or SQLite) using GORM.
Package database provides a session.Service backed by a relational database (for example PostgreSQL, Spanner, or SQLite) using GORM.
sessiontestsuite
Package sessiontestsuite provides a reusable, backend-agnostic test suite for verifying session.Service implementations.
Package sessiontestsuite provides a reusable, backend-agnostic test suite for verifying session.Service implementations.
vertexai
Package vertexai provides a session.Service backed by the Vertex AI Agent Engine runtime.
Package vertexai provides a session.Service backed by the Vertex AI Agent Engine runtime.
telemetry
Package telemetry contains OpenTelemetry related functionality for ADK.
Package telemetry contains OpenTelemetry related functionality for ADK.
tool
Package tool defines the interfaces for tools that can be called by an agent.
Package tool defines the interfaces for tools that can be called by an agent.
agenttool
Package agenttool provides a tool that allows an agent to call another agent.
Package agenttool provides a tool that allows an agent to call another agent.
bigquerytoolset
Package bigquerytoolset provides a tool.Toolset whose tools let an agent explore BigQuery: list the datasets in a project and the tables in a dataset, and read the metadata of a dataset, a table or a job.
Package bigquerytoolset provides a tool.Toolset whose tools let an agent explore BigQuery: list the datasets in a project and the tables in a dataset, and read the metadata of a dataset, a table or a job.
exampletool
Package exampletool provides a tool that allows an agent to add (few-shot) examples to the LLM request.
Package exampletool provides a tool that allows an agent to add (few-shot) examples to the LLM request.
exampletool/vertexai
Package vertexai provides an exampletool.Provider backed by a Vertex AI Example Store.
Package vertexai provides an exampletool.Provider backed by a Vertex AI Example Store.
exitlooptool
Package exitlooptool provides a tool that allows an agent to exit a loop.
Package exitlooptool provides a tool that allows an agent to exit a loop.
functiontool
Package functiontool provides a tool that wraps a Go function.
Package functiontool provides a tool that wraps a Go function.
geminitool
Package geminitool provides access to Gemini native tools.
Package geminitool provides access to Gemini native tools.
loadartifactstool
Package loadartifactstool defines a tool for loading artifacts.
Package loadartifactstool defines a tool for loading artifacts.
loadmemorytool
Package loadmemorytool provides a tool that loads memory for the current user.
Package loadmemorytool provides a tool that loads memory for the current user.
mcptoolset
Package mcptoolset provides an MCP tool set.
Package mcptoolset provides an MCP tool set.
preloadmemorytool
Package preloadmemorytool provides a tool that automatically preloads memory for the current user at the start of each LLM request.
Package preloadmemorytool provides a tool that automatically preloads memory for the current user at the start of each LLM request.
skilltoolset
Package skilltoolset provides a toolset that lets an agent discover and use skills: folders of instructions and resources that extend its capabilities.
Package skilltoolset provides a toolset that lets an agent discover and use skills: folders of instructions and resources that extend its capabilities.
skilltoolset/internal/skilltool
Package skilltool provides the standard tools for the skill toolset.
Package skilltool provides the standard tools for the skill toolset.
skilltoolset/skill
Package skill provides structs and functions for working with agent skills.
Package skill provides structs and functions for working with agent skills.
toolauth
Package toolauth is adk-python's auth data model, in its wire format: how a resource expects to be authenticated (Scheme), a credential a tool was configured with or obtained (Credential), and the two together with the key the credential is stored under (Config).
Package toolauth is adk-python's auth data model, in its wire format: how a resource expects to be authenticated (Scheme), a credential a tool was configured with or obtained (Credential), and the two together with the key the credential is stored under (Config).
toolconfirmation
Package toolconfirmation provides structures and utilities for handling Human-in-the-Loop tool execution confirmations within the ADK.
Package toolconfirmation provides structures and utilities for handling Human-in-the-Loop tool execution confirmations within the ADK.
toolsearch
Package toolsearch provides a gating toolset that hides all but a small core set of tools from the model until it calls search_tools to discover them.
Package toolsearch provides a gating toolset that hides all but a small core set of tools from the model until it calls search_tools to discover them.
toolutils
Package toolutils provides public helpers for packing tool declarations into a model.LLMRequest.
Package toolutils provides public helpers for packing tool declarations into a model.LLMRequest.
util
aiplatform
Package aiplatform provides utils for aiplatform.googleapis.com
Package aiplatform provides utils for aiplatform.googleapis.com
instructionutil
Package instructionutil provides utilities to work with agent instructions.
Package instructionutil provides utilities to work with agent instructions.
vertexai
Package vertexai provides utilities for Agent Engine deployments
Package vertexai provides utilities for Agent Engine deployments
workflow
Package workflow hosts workflow definitions and primitives for building multi-agent applications.
Package workflow hosts workflow definitions and primitives for building multi-agent applications.
Click to show internal directories.
Click to hide internal directories.
You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.