Skip to content

toolbox_langchain does not close session #208

@averikitsch

Description

@averikitsch

When running https://googleapis.github.io/genai-toolbox/samples/bigquery/local_quickstart/ with ADK, the script closes with:

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x11c5786a0>
Unclosed connector
connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x11c51b5e0>, 78390.953288541)])']
connector: <aiohttp.connector.TCPConnector object at 0x11c578ca0>

The Toolbox LangChain SDK used in ADK does not have a method to close the Toolbox client, most likely resulting in these warning messages.

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions