Repository navigation
Add ObjectStorageToolset for reading files on object storage - #73899
Merged
kaxil merged 2 commits intoSep 30, 2026
Merged
Conversation
kaxil
marked this pull request as ready for review
September 29, 2026 13:17
kaxil
force-pushed
the
commonai-object-storage-toolset
branch
from
September 29, 2026 14:03
a1cd362 to
04645c4
Compare
vatsrahul1001
approved these changes
Sep 29, 2026
The toolset gives an agent read-only access to the files under one ObjectStoragePath root: list a directory, get a file's size and modification time, and read a text file a window of lines at a time or a Parquet or Avro file as its schema and first rows. Paths are resolved under the root, and absolute paths, schemes, '..' and symlinks that leave a local root are refused. Like the other toolsets it works in AgentOperator, a Pydantic AI agent, Strands and Google ADK.
A corrupt Parquet or Avro file is refused rather than failing the run: pyarrow's ArrowInvalid is a ValueError, which the refusal already catches. On an object store only the toolset's own path check applies, so encoded dots and backslashes are tested there to show they stay part of a key under the root.
kaxil
force-pushed
the
commonai-object-storage-toolset
branch
from
September 30, 2026 06:01
1ee0534 to
3b94bde
Compare
This was referenced Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An agent that needs to read files on S3, GCS, Azure or a local path had no toolset for it:
HookToolsetover a storage hook exposes whatever the hook's methods take, including buckets and paths the Dag author never meant to hand over.ObjectStorageToolsetgives read-only access to the files under oneObjectStoragePathroot, through three tools:list_files,get_file_info, andread_file, which returns a window of lines from a text file, or the schema and first rows of a Parquet or Avro file...are refused, and on a local root so is a symlink that leads outside it.offsetto continue from. Bytes read and output size have limits, so one call cannot fill the context window or pull a large object into the worker.It works in
AgentOperator, a Pydantic AI agent, Strands and Google ADK, and is listed as experimental on the stability page. The root is only a path check: the connection's own permissions are the real limit, which the docs say.A real Claude agent given only a reports root. It lists the root, pages through a directory with
offset, reads a text file, a Parquet file and a gzip file, and is refused when it asks for../payroll.txt:{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.