langchain-ibm: 0.3.17#

agent_toolkits#

Classes

agent_toolkits.sql.tool.BaseSQLDatabaseTool

Base tool for interacting with a SQL database.

agent_toolkits.sql.tool.InfoSQLDatabaseTool

Tool for getting metadata about a SQL database.

agent_toolkits.sql.tool.ListSQLDatabaseTool

Tool for getting tables names.

agent_toolkits.sql.tool.QuerySQLCheckerTool

Use an LLM to check if a query is correct.

agent_toolkits.sql.tool.QuerySQLDatabaseTool

Tool for querying a SQL database.

agent_toolkits.sql.toolkit.WatsonxSQLDatabaseToolkit

Toolkit for interacting with IBM watsonx.ai databases.

agent_toolkits.utility.toolkit.WatsonxTool

IBM watsonx.ai Tool.

agent_toolkits.utility.toolkit.WatsonxToolkit

IBM watsonx.ai Toolkit.

Functions

agent_toolkits.utility.utils.convert_to_watsonx_tool(tool)

Convert WatsonxTool to watsonx tool structure.

chat_models#

Classes

chat_models.ChatWatsonx

IBM watsonx.ai large language chat models.

embeddings#

Classes

embeddings.WatsonxEmbeddings

IBM watsonx.ai embedding models.

llms#

Classes

llms.WatsonxLLM

IBM watsonx.ai large language models.

rerank#

Classes

rerank.WatsonxRerank

Document compressor that uses watsonx Rerank API.

utilities#

Classes

utilities.sql_database.WatsonxSQLDatabase(*, ...)

Watsonx SQL Database class for IBM watsonx.ai databases connection assets.

Functions

utilities.sql_database.pretty_print_table_info(...)

utilities.sql_database.truncate_word(...[, ...])

Truncate a string to a certain number of characters, based on the max string length.

utils#

Functions

utils.async_gateway_error_handler(func)

Async decorator to catch ApiRequestFailure on Model Gateway calls and log a uniform warning.

utils.check_duplicate_chat_params(params, kwargs)

utils.check_for_attribute(value, key, env_key)

utils.extract_chat_params(kwargs[, ...])

utils.extract_params(kwargs[, default_params])

utils.gateway_error_handler(func)

Decorator to catch ApiRequestFailure on Model Gateway calls and log a uniform warning.

utils.resolve_watsonx_credentials(url[, ...])