btw_tool_session_check_package_installed: Tool: Check if a package is installed
Description
Checks if a package is installed in the current session. If the package is
installed, it returns the version number. If not, it suggests packages with
similar names to help the LLM resolve typos.
A message indicating whether the package is installed and
its version, or an error indicating that the package is not installed.
Arguments
package_name
The name of the package.
_intent
An optional string describing the intent of the tool use.
When the tool is used by an LLM, the model will use this argument to
explain why it called the tool.