You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since commit e3caf79, SaveFilesAsArtifactsPlugin also adds Part(file_data=FileData(file_uri=canonical_uri))
when the URI is model-accessible (gs://, https, http), in addition to the text placeholder.
Can the maintainers clarify:
Intended production pattern: placeholder only + load_artifacts, or placeholder + gs://file_data, or both?
Session persistence: we understand file_data stores URI metadata on the event, not bytes — correct?
Context replay: when session history is rebuilt for turn N+1, are historical file_data parts included in generateContent again? If yes, does Vertex re-resolve the GCS URI each time (multimodal cost/latency)?
attach_file_reference=False: is that the supported way to get placeholder-only / load_artifacts-only behavior with GCS-backed artifacts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Context
We're building on ADK with
GcsArtifactService+SaveFilesAsArtifactsPlugin+LoadArtifactsTool.Official artifacts docs say clearly that
load_artifactscontent is temporarily appended to the request and not permanently saved to session history:https://google.github.io/adk-docs/artifacts/
The Google Cloud article "Manage Context Efficiently With Artifacts" recommends
SaveFilesAsArtifactsPlugin+load_artifactsso uploads are not sent to the model on every turn:https://medium.com/google-cloud/2-minute-adk-manage-context-efficiently-with-artifacts-6fcc6683d274
Question
Since commit e3caf79,
SaveFilesAsArtifactsPluginalso addsPart(file_data=FileData(file_uri=canonical_uri))when the URI is model-accessible (
gs://,https,http), in addition to the text placeholder.Can the maintainers clarify:
load_artifacts, or placeholder +gs://file_data, or both?file_datastores URI metadata on the event, not bytes — correct?file_dataparts included ingenerateContentagain? If yes, does Vertex re-resolve the GCS URI each time (multimodal cost/latency)?attach_file_reference=False: is that the supported way to get placeholder-only / load_artifacts-only behavior with GCS-backed artifacts?LoadArtifactsToolis explained;file_dataupload path is not)?Our environment
GcsArtifactService(production bucket in project GCS)STORAGE_EMULATOR_HOST(local bucket names not visible to Vertex → 404 ifgs://refs are sent)Related
Beta Was this translation helpful? Give feedback.
All reactions