adk-docs
adk-docs copied to clipboard
Found docs updates needed from ADK python release v1.18.0 to v1.19.0
The ADK Python repository has been updated from v1.18.0 to v1.19.0. This release includes several new features, API changes, and bug fixes that need to be reflected in the documentation.
Compare Link: https://github.com/google/adk-python/compare/v1.18.0...v1.19.0
Here are the recommended documentation updates:
-
Update Python Version Requirement. The minimum required Python version has been updated from 3.9 to 3.10.
Current state: The documentation in
docs/index.mdand other places might still mention Python 3.9.Proposed Change: Update all mentions of the Python version requirement to 3.10.
Reasoning: The
pyproject.tomlfile in the ADK Python repository has been updated to require Python 3.10 or higher. This change needs to be reflected in the documentation to ensure users have the correct environment setup.Reference:
pyproject.toml
-
Document the New Service Registration Feature. A new service registry has been introduced that allows users to register custom services for sessions, artifacts, and memory using a
services.pyorservices.yamlfile.Current state: There is no documentation for this new feature.
Proposed Change: Add a new section to the documentation that explains how to register custom services. This section should include:
- An explanation of the service registry and its purpose.
- Instructions on how to create and use
services.yamlandservices.py. - Code examples for both methods of registration.
Reasoning: This is a new feature that provides a powerful way for users to extend the ADK with their own custom services. The documentation should be updated to make users aware of this feature and how to use it.
Reference:
src/google/adk/cli/service_registry.pycontributing/samples/services.pycontributing/samples/services.yaml
-
Document the New
FileArtifactServiceand Artifact Service Updates. A newFileArtifactServicehas been added for storing artifacts on the local filesystem. Additionally, thesave_artifactmethod inCallbackContextnow acceptscustom_metadata, and new methodsget_artifact_versionandlist_artifactshave been added.Current state: The documentation for artifact services may not include information about the
FileArtifactServiceor the recent updates toCallbackContext.Proposed Change:
- Add documentation for the
FileArtifactService, explaining how to configure and use it. - Update the documentation for
CallbackContextto include the newcustom_metadataparameter forsave_artifactand the newget_artifact_versionandlist_artifactsmethods. - Add a new sample agent that demonstrates the use of the
FileArtifactServiceand the new artifact-related methods.
Reasoning: These updates provide more flexibility for managing artifacts. The documentation should be updated to reflect these new capabilities.
Reference:
src/google/adk/artifacts/file_artifact_service.pysrc/google/adk/agents/callback_context.pycontributing/samples/context_offloading_with_artifact/
- Add documentation for the
-
Document the Session Rewind Feature. A new feature has been added that allows rewinding a session to a previous state.
Current state: There is no documentation for this new feature.
Proposed Change: Add a new section to the documentation that explains the session rewind feature, how to use it, and provides a code example.
Reasoning: This is a useful feature for debugging and replaying sessions. The documentation should be updated to make users aware of this feature.
Reference:
contributing/samples/rewind_session/main.pysrc/google/adk/runners.py(therewind_asyncmethod)
-
Document the
on_model_error_callback. A newon_model_error_callbackhas been added to theLlmAgentclass to allow for custom error handling when a model call fails.Current state: There is no documentation for this new callback.
Proposed Change: Update the documentation for
LlmAgentto include the newon_model_error_callback, explaining its purpose, how to use it, and providing a code example.Reasoning: This new callback provides a way for users to implement custom error handling and recovery logic. The documentation should be updated to reflect this new capability.
Reference:
src/google/adk/agents/llm_agent.py
-
Update Documentation for
save_live_blob. Thesave_live_audiorun configuration has been deprecated and replaced withsave_live_blob.Current state: The documentation may still refer to
save_live_audio.Proposed Change: Update all mentions of
save_live_audiotosave_live_bloband explain that the new configuration supports both audio and video data.Reasoning: This is a breaking change for users of the live/bidi-streaming features. The documentation needs to be updated to reflect this change.
Reference:
src/google/adk/agents/run_config.py
-
Document New and Removed Plugins. The
BigQueryAgentAnalyticsPluginandMultimodalToolResultsPluginhave been added, and thebigquery_logging_pluginhas been removed.Current state: The documentation for plugins may be out of date.
Proposed Change:
- Add documentation for the
BigQueryAgentAnalyticsPluginandMultimodalToolResultsPlugin, explaining their purpose, how to configure them, and how to use them. - Remove documentation for the
bigquery_logging_plugin.
Reasoning: These changes to the available plugins need to be reflected in the documentation.
Reference:
src/google/adk/plugins/bigquery_agent_analytics_plugin.pysrc/google/adk/plugins/multimodal_tool_results_plugin.py
- Add documentation for the
-
Document Session Service Updates. A new
SqliteSessionServicehas been added, and theDatabaseSessionServiceis now async.Current state: The documentation for session services may not include these updates.
Proposed Change:
- Add documentation for the
SqliteSessionService. - Update the documentation for
DatabaseSessionServiceto reflect its new async nature.
Reasoning: These are significant changes to the session management capabilities of the ADK. The documentation should be updated to reflect these changes.
Reference:
src/google/adk/sessions/sqlite_session_service.pysrc/google/adk/sessions/database_session_service.py
- Add documentation for the
-
Add Documentation for New Sample Agents. Several new sample agents have been added to demonstrate new features.
Current state: There is no documentation for these new sample agents.
Proposed Change: Add documentation for the following new sample agents:
context_offloading_with_artifactlitellm_inline_tool_calllitellm_structured_outputmcp_in_agent_tool_remotemcp_in_agent_tool_stdiomultimodal_tool_results
Reasoning: These new samples demonstrate important new features of the ADK. The documentation should be updated to make users aware of these samples and the features they demonstrate.
Reference:
contributing/samples/