From 9e71af19bb618c0c7dbe4acd6b610adc88fbd5d4 Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Mon, 3 Aug 2026 07:00:31 -0700 Subject: [PATCH] fix: Update generator configuration and SDK bindings for Agent Engine Session update calls to return Session directly. PiperOrigin-RevId: 958351314 --- src/sessions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sessions.ts b/src/sessions.ts index 805c3d61..37d53070 100644 --- a/src/sessions.ts +++ b/src/sessions.ts @@ -234,8 +234,8 @@ export class Sessions extends BaseModule { async updateInternal( params: types.UpdateAgentEngineSessionRequestParameters, - ): Promise { - let response: Promise; + ): Promise { + let response: Promise; let path: string = ''; let queryParams: Record = {}; @@ -262,10 +262,10 @@ export class Sessions extends BaseModule { }) .then((httpResponse) => { return httpResponse.json(); - }) as Promise; + }) as Promise; return response.then((resp) => { - return resp as types.AgentEngineSessionOperation; + return resp as types.Session; }); } else { throw new Error(