convert_to_anthropic_tool#

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

Convert a tool-like object to an Anthropic tool definition.

Parameters:

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

Return type:

AnthropicTool