Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Aug 13, 2025

fix: Fix Spanner DatabaseSessionService support

Introduce DynamicPickleType to handle session actions, using sqlalchemy-spanner SpannerPickleType when the database dialect is Spanner.

Connects to a Spanner database to store session data persistently in tables.

Example using Spanner database:

session_service = DatabaseSessionService(db_url="spanner+spanner:///projects/project-id/instances/instance-id/databases/database-id")

Example adk web command:

adk web --session_service_uri="spanner+spanner:///projects/project-id/instances/instance-id/databases/database-id"

@copybara-service copybara-service bot changed the title fix: Fix Spanner database session service support fix: Fix Spanner DatabaseSessionService support Aug 19, 2025
@copybara-service copybara-service bot force-pushed the copybara/794673730 branch 2 times, most recently from 41f66e2 to eabf9b2 Compare August 20, 2025 19:18
Introduce `DynamicPickleType` to handle session actions, using sqlalchemy-spanner `SpannerPickleType` when the database dialect is Spanner.

Connects to a Spanner database to store session data persistently in tables.
# Example using Spanner database:
`session_service = DatabaseSessionService(db_url="spanner+spanner:///projects/project-id/instances/instance-id/databases/database-id")`

# Example adk web command:
`adk web --session_service_uri="spanner+spanner:///projects/project-id/instances/instance-id/databases/database-id"`

PiperOrigin-RevId: 797416610
@copybara-service copybara-service bot merged commit 54ed079 into main Aug 20, 2025
@copybara-service copybara-service bot deleted the copybara/794673730 branch August 20, 2025 19:26
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