Skip to content

Pass agent inputs through a file rather than environment variables#6275

Open
jgraham wants to merge 1 commit into
mozilla:masterfrom
jgraham:inputs_upload
Open

Pass agent inputs through a file rather than environment variables#6275
jgraham wants to merge 1 commit into
mozilla:masterfrom
jgraham:inputs_upload

Conversation

@jgraham

@jgraham jgraham commented Jul 2, 2026

Copy link
Copy Markdown
Member

To pass inputs ot agents in production, upload a file to a GCS bucket, and pass a URL to that file into the agent environment.

This enables having inputs which don't fit inside the 32kB limits of enironment variables for GCS.

For local runs using docker, data is still pased via environment variables.

@jgraham

jgraham commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

This is a possible approach for fixing #6233

@jgraham jgraham force-pushed the inputs_upload branch 2 times, most recently from 6403a87 to 20639df Compare July 2, 2026 10:44
@jgraham jgraham requested a review from suhaibmujahid July 2, 2026 10:55
To pass inputs ot agents in production, upload a file to a GCS bucket,
and pass a URL to that file into the agent environment.

This enables having inputs which don't fit inside the 32kB limits of
enironment variables for GCS.

For local runs using docker, data is still pased via environment variables.

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I can see the need for supporting a larger input payload.

That said, passing the environment variables does simplify the wiring in a lot of use cases, so I'd love to find a way to support both. One option: when we have a large input, we include an attachments field that lists the items and uploads them to a separate bucket, with a link the agent can use to read them from there. We'd also give the agent read-only permission for that bucket.

Let's discuss and decide how we want to move forward on this.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants