Skip to content

feat(sessions): support session expiry in VertexAiSessionService - #369

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_970431402
Aug 25, 2026
Merged

feat(sessions): support session expiry in VertexAiSessionService#369
copybara-service[bot] merged 1 commit into
mainfrom
test_970431402

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 25, 2026

Copy link
Copy Markdown

feat(sessions): support session expiry in VertexAiSessionService

VertexAiSessionService now takes a sessionTtl applied to every session it
creates, including the ones a runner creates through the SessionService
interface, where a per-call argument cannot reach. A Vertex-only createSession
overload additionally takes ttl or expireTime for one session, overriding
that default.

At most one expiry may be set, since the wire field is a single choice. Without
one the backend applies its own default, which is long; with one, the minimum it
accepts is 24 hours. The SessionService interface is unchanged.

@copybara-service
copybara-service Bot force-pushed the test_970431402 branch 8 times, most recently from 097c677 to 096fb76 Compare August 25, 2026 15:27
`VertexAiSessionService` now takes a `sessionTtl` applied to every session it
creates, including the ones a runner creates through the `SessionService`
interface, where a per-call argument cannot reach. A Vertex-only `createSession`
overload additionally takes `ttl` or `expireTime` for one session, overriding
that default.

At most one expiry may be set, since the wire field is a single choice. Without
one the backend applies its own default, which is long; with one, the minimum it
accepts is 24 hours. The `SessionService` interface is unchanged.

PiperOrigin-RevId: 970575360
@copybara-service
copybara-service Bot merged commit 776351a into main Aug 25, 2026
8 checks passed
@copybara-service
copybara-service Bot deleted the test_970431402 branch August 25, 2026 15:41
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.

1 participant