Skip to content

Update ADK doc according to issue #1743 - 1#1745

Open
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20260508-213136
Open

Update ADK doc according to issue #1743 - 1#1745
adk-bot wants to merge 1 commit into
mainfrom
agent-changes-20260508-213136

Conversation

@adk-bot
Copy link
Copy Markdown
Collaborator

@adk-bot adk-bot commented May 8, 2026

1. Support for max_output_chars in EnvironmentToolset

Doc file: docs/integrations/environment-toolset.md

Current state:

Get started

Enable local environment interactions by adding the EnvironmentToolset
with a LocalEnvironment instance to your agent's tools.

Proposed Change:

Get started

Enable local environment interactions by adding the EnvironmentToolset
with a LocalEnvironment instance to your agent's tools.

You can use the optional max_output_chars parameter when initializing EnvironmentToolset to limit the maximum number of characters returned from file reads or command executions. This helps prevent large file contents or command outputs from exceeding the agent's context window limit.

Reasoning:
The EnvironmentToolset was updated to accept max_output_chars which controls output truncation for ReadFileTool and ExecuteTool. This helps users prevent their agents' context windows from being overwhelmed by large file/command outputs.

Reference: src/google/adk/tools/environment/_environment_toolset.py

@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit 2e69d92
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/69fe563d6d397f0009d4dd0e
😎 Deploy Preview https://deploy-preview-1745--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@zyantw
Copy link
Copy Markdown
Collaborator

zyantw commented May 13, 2026

@joefernandez edited passive voice, made the language more straightforward, the examples are sufficient and clear. I also think that current documentation needs more detail and this is a good contribution. My next step would be: validate the code that is currently documented with Critique or with VS code, although the syntax looks good so far. I also think that in terms of organization/taxonomy the article is good to keep in that section.

1. Support for max_output_chars in EnvironmentToolset

Doc file: docs/integrations/environment-toolset.md

Proposed Change:

Get started

Enable local environment interactions by adding the EnvironmentToolset
with a LocalEnvironment instance to your agent's tools.

Set the optional max_output_chars parameter when initializing EnvironmentToolset to limit the maximum number of characters returned from file reads or command executions. This helps prevent large file contents or command outputs from exceeding the agent's context window limit.

Reasoning:
The EnvironmentToolset now accepts max_output_chars which controls output truncation for ReadFileTool and ExecuteTool. This prevents the agents' context windows from being overwhelmed by large file/command outputs.

Reference: src/google/adk/tools/environment/_environment_toolset.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants