@@ -9,7 +9,7 @@ This sample demonstrates ADK's static instruction feature with non-text content
99- ** Gemini Files API integration** : Demonstrates uploading documents and using file_data
1010- ** Mixed content types** : inline_data for images, file_data for documents
1111- ** API variant detection** : Different behavior for Gemini API vs Vertex AI
12- - ** GCS file references** : Additional GCS file support when using Vertex AI
12+ - ** GCS file references** : Support for both GCS URI and HTTPS URL access methods in Vertex AI
1313
1414## Static Instruction Content
1515
@@ -23,7 +23,7 @@ The agent includes:
2323
2424** Vertex AI:**
25253 . ** Research paper** : Gemma research paper from Google Cloud Storage via GCS file reference
26- 4 . ** Contributing guide ** : Gemini Cookbook contributing guide from GitHub via HTTPS file reference
26+ 4 . ** AI research paper ** : Same research paper accessed via HTTPS URL for comparison
2727
2828## Content Used
2929
@@ -37,14 +37,14 @@ The agent includes:
3737 - Files are automatically cleaned up after 48 hours by the Gemini API
3838
3939** Vertex AI:**
40- - ** Research Paper** : Gemma research paper (GCS file reference as ` file_data ` )
41- - Public GCS URI: ` gs://cloud-samples-data/generative-ai/pdf/2403.05530.pdf `
42- - Demonstrates GCS file access in Vertex AI
43- - PDF format with technical AI research content
44- - ** Contributing Guide ** : Gemini Cookbook contributing guide ( HTTPS file reference as ` file_data ` )
45- - Public GitHub URL: ` https://raw.githubusercontent .com/google-gemini/cookbook/main/CONTRIBUTING.md `
40+ - ** Gemma Research Paper** : Research paper accessed via GCS URI ( as ` file_data ` )
41+ - GCS URI: ` gs://cloud-samples-data/generative-ai/pdf/2403.05530.pdf `
42+ - Demonstrates native GCS file access in Vertex AI
43+ - PDF format with technical AI research content about Gemini 1.5
44+ - ** AI Research Paper ** : Same research paper accessed via HTTPS URL ( as ` file_data ` )
45+ - HTTPS URL: ` https://storage.googleapis .com/cloud-samples-data/generative-ai/pdf/2403.05530.pdf `
4646 - Demonstrates HTTPS file access in Vertex AI
47- - Markdown format with development guidelines
47+ - Agent can discover these are the same document and compare access methods
4848
4949## Setup
5050
@@ -73,7 +73,9 @@ The agent will automatically load environment variables on startup.
7373cd contributing/samples
7474python -m static_non_text_content.main
7575```
76- This runs 4 test prompts that specifically demonstrate the static content features.
76+ This runs test prompts that demonstrate the static content features:
77+ - ** Gemini Developer API** : 4 prompts testing inline_data + Files API upload
78+ - ** Vertex AI** : 5 prompts testing inline_data + GCS/HTTPS file access comparison
7779
7880### Interactive Mode
7981``` bash
@@ -101,13 +103,17 @@ The sample automatically runs test prompts when no `--prompt` is specified:
101103** All API variants:**
1021041 . "What reference materials do you have access to?"
1031052 . "Can you describe the sample chart that was provided to you?"
104- 3 . "What does the contributing guide document say about best practices?"
105- 4 . "How do the inline image and file references in your instructions help you answer questions?"
106+ 3 . "How do the inline image and file references in your instructions help you answer questions?"
106107
107- ** Vertex AI only (additional prompt):**
108+ ** Gemini Developer API only:**
109+ 4 . "What does the contributing guide document say about best practices?"
110+
111+ ** Vertex AI only (additional prompts):**
1081125 . "What is the Gemma research paper about and what are its key contributions?"
113+ 6 . "Can you compare the research papers you have access to? Are they related or different?"
109114
110- These prompts test ` inline_data ` , Files API ` file_data ` (Gemini API), and GCS/HTTPS ` file_data ` (Vertex AI).
115+ ** Gemini Developer API** tests: ` inline_data ` (image) + Files API ` file_data ` (uploaded document)
116+ ** Vertex AI** tests: ` inline_data ` (image) + GCS URI ` file_data ` + HTTPS URL ` file_data ` (same document via different access methods)
111117
112118## How It Works
113119
0 commit comments