Prerequisites
- Go 1.26.5 or later. This requirement comes from the current mainline
go.mod. - A model and API Key are required when you call a model. Installing the module itself does not require model credentials.
- To use V2 capabilities, pin to the
v2.0.0tag.
Install V2 for New Projects
Initialize a Go module in your project directory:v2.0.0 tag:
V2 contains breaking changes required by ADK v2 and A2A v2. Production projects should pin to
v2.0.0 or a validated version.Install V1 for Existing Projects
If your project still uses ADK v1, install a V1 maintenance release:/v2:
release/v1. To inspect V1 examples or fixes, switch to that branch:
Configure the Model
VeADK Go reads.env and config.yaml from the current working directory. .env does not override existing environment variables. Keys in config.yaml are converted to environment variable names and also do not override existing environment variables. As a result, exported environment variables have higher priority than file-based configuration.
Create config.yaml in your project root: