langchain_anthropic 0.1.23¶

langchain_anthropic.chat_models¶

Classes¶

chat_models.AnthropicTool

Anthropic tool definition.

chat_models.ChatAnthropic

Anthropic chat models.

Functions¶

chat_models.convert_to_anthropic_tool(tool)

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

Deprecated classes¶

chat_models.ChatAnthropicMessages

Deprecated since version 0.1.0: Use ChatAnthropic instead.

langchain_anthropic.experimental¶

Functions¶

experimental.get_system_message(tools)

Generate a system message that describes the available tools.

Deprecated classes¶

experimental.ChatAnthropicTools

Deprecated since version 0.1.5: Tool-calling is now officially supported by the Anthropic API so this workaround is no longer needed. Use ChatAnthropic instead.

langchain_anthropic.llms¶

Classes¶

llms.AnthropicLLM

Anthropic large language model.

Deprecated classes¶

llms.Anthropic

Deprecated since version 0.1.0: Use AnthropicLLM instead.

langchain_anthropic.output_parsers¶

Classes¶

output_parsers.ToolsOutputParser

Output parser for tool calls.

Functions¶

output_parsers.extract_tool_calls(content)

Extract tool calls from a list of content blocks.