langchain_anthropic.chat_models.convert_to_anthropic_tool

langchain_anthropic.chat_models.convert_to_anthropic_tool(tool: Union[Dict[str, Any], Type, Callable, BaseTool]) AnthropicTool[source]

将工具-like对象转换为Anthropic工具定义。

参数

tool (Union[Dict[str, Any], Type, Callable, BaseTool]) –

返回类型

AnthropicTool