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 Preview capabilities, you need access to the
veadk-gomainbranch or a pinned commit.
Install V2 for New Projects
Initialize a Go module in your project directory:@main or a pinned commit:
V2 contains breaking changes required by ADK v2 and A2A v2. After a stable V2 tag is released, production projects should pin a validated version instead of depending on
@main.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: