Skip to content

fix(a2a): stop passing caller-chosen file URIs to the model by default - #1976

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1031185307
Dec 1, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1031185307

Conversation

@copybara-service

Copy link
Copy Markdown

fix(a2a): stop passing caller-chosen file URIs to the model by default

  • Breaking: A2A file parts that carry a URI now reach the model as a text placeholder. Admit trusted locations with fileUriPolicy(FileUriPolicy.allowPrefixes(...)) on AgentExecutorConfig.Builder or RemoteA2AAgent.Builder. FileUriPolicy.allowAll() restores the old behavior for gs, http and https URIs and Gemini Files API names; other schemes need allowPrefixes(...) or a predicate.

- Breaking: A2A file parts that carry a URI now reach the model as a text placeholder. Admit trusted locations with `fileUriPolicy(FileUriPolicy.allowPrefixes(...))` on `AgentExecutorConfig.Builder` or `RemoteA2AAgent.Builder`. `FileUriPolicy.allowAll()` restores the old behavior for `gs`, `http` and `https` URIs and Gemini Files API names; other schemes need `allowPrefixes(...)` or a predicate.

PiperOrigin-RevId: 1033433135
@copybara-service
copybara-service Bot merged commit 5a246ce into main Dec 1, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_1031185307 branch December 1, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant