Skip to content

Add sample for Spanner ADK integration - #186

Open
sararob wants to merge 6 commits into
GoogleCloudPlatform:mainfrom
sararob:adk-sample
Open

sararob wants to merge 6 commits into
GoogleCloudPlatform:mainfrom
sararob:adk-sample

Conversation

@sararob

@sararob sararob commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

This includes a sample showing how to use the ADK's Spanner integration. The sample includes 3 agents:

  • A basic agent for summarizing your Spanner instances and databases
  • An agent that does semantic reasoning using a vector embedding column
  • An agent that restricts access to specific tables in your Spanner instance

@sararob
sararob marked this pull request as draft September 22, 2026 14:32

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a sample healthcare application demonstrating how to build SQL, semantic search, and secure database agents using the Agent Development Kit (ADK) and Cloud Spanner. It includes setup scripts, database schemas, and three distinct agent implementations. The review feedback highlights a critical need to validate the GOOGLE_CLOUD_PROJECT environment variable across all agents to prevent runtime failures when it is missing. Additionally, in the semantic agent, it is recommended to instantiate the GenAI Client at the module level rather than on every function call to avoid unnecessary overhead.

Comment thread spanner-adk-agents/basic_spanner_agent/agent.py
Comment thread spanner-adk-agents/secure_agent/agent.py
Comment thread spanner-adk-agents/semantic_agent/agent.py
Comment thread spanner-adk-agents/semantic_agent/agent.py Outdated
@sararob
sararob marked this pull request as ready for review September 22, 2026 15:36
@sararob
sararob requested a review from Lsubatin September 22, 2026 15:36
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.

2 participants