feat(genai): tools vais sample #4162
Open
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.
Description
Add a new GenAI Vertex AI Search tool sample.
Test is running locally fine.
To make this test work locally for me and my project, I use:
const DATASTORE =
'projects/cloud-ai-devrel-softserve/locations/global/collections/default_collection/dataStores/example-adk-website-datastore_1755611010401';
from file tools-vais-with-txt.
To make the test look and work the same as in the Python sample, it is used:
const datastore =
projects/${projectId}/locations/global/collections/default_collection/dataStores/grounding-test-datastore
;from tools-vais-with-txt.test.
IMO, the project that is used to run the test is missing a resource from above. Adding it should fix it.
projects/{PROJECT_ID}/locations/global/collections/default_collection/dataStores/grounding-test-datastore
Checklist
npm test
(see Testing)npm run lint
(see Style)