add_tool


Description:

public void add_tool (BaseTool tool)

Adds a tool to this chat's tools map.

Adds the tool to the tools hashmap keyed by tool name. The tool's client is set via constructor. This method allows callers to add tools directly to Chat (not Client).

Parameters:

tool

The tool to add