google / google/adk-docs

Pickle serialisation process & LazyLoad tools documentation

Open
#851 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
1.3k
Avg merge
7d 1h
Merged PRs (30d)
34

Description

**Is your feature request related to a problem? Please describe.**

When deploying agents to Vertex AI using ADK's agent_engines.create(), environment variables specified in
AdkApp.env_vars are not available when toolsets are initialised during the pickle serialisation process. This causes
pickled toolsets to retain configuration values from the deployment environment rather than reading from the runtime environment.

Impact
This behaviour breaks environment specific configuration patterns and forces developers to implement complex workarounds using lazy loading and custom pickle serialisation to defer toolset creation until runtime.

https://github.com/google/adk-python/issues/3208

**Describe the solution you'd like**

Clear documentation about lazy loading toolsets and agent engine pickle serialisation proces.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.