google / google/adk-go

Add Close method to tool.Toolset interface

Open
#481 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
8.8k
Forks
1k
Avg merge
3d 18h
Merged PRs (30d)
88

Description

This is a draft/idea yet.

We should add `Close() error` method to the `tool.Toolset` interface:
* consistency with adk-python [source](https://github.com/google/adk-python/blob/79fcddb39f71a4c1342e63b4d67832b3eccb2652/src/google/adk/tools/base_toolset.py#L151)
* this allows to clean up any resources Toolset may have (e.g. session in the MCP Toolset).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.