vendor_connectors.anthropic.tools
AI framework tools for Anthropic Claude operations.
This module provides tools for Anthropic operations that work with multiple AI agent frameworks.
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”CreateMessageSchema | Pydantic schema for the anthropic_create_message tool. |
|---|---|
ListModelsSchema | Pydantic schema for the anthropic_list_models tool. |
Functions
Section titled “Functions”anthropic_create_message | Create a message using Anthropic Claude. |
|---|---|
anthropic_list_models | List available Anthropic Claude models. |
get_langchain_tools | Get all Anthropic tools as LangChain StructuredTools. |
get_crewai_tools | Get all Anthropic tools as CrewAI tools. |
get_strands_tools | Get all Anthropic tools as plain Python functions for AWS Strands. |
get_tools | Get Anthropic tools for the specified or auto-detected framework. |
TOOL_DEFINITIONS |
|---|
class vendor_connectors.anthropic.tools.CreateMessageSchema
Section titled “class vendor_connectors.anthropic.tools.CreateMessageSchema”Bases: pydantic.BaseModel
Pydantic schema for the anthropic_create_message tool.
model : str
Section titled “model : str”‘Field(…)’
max_tokens : int
Section titled “max_tokens : int”‘Field(…)’
prompt : str
Section titled “prompt : str”‘Field(…)’
system : str | None
Section titled “system : str | None”‘Field(…)’
class vendor_connectors.anthropic.tools.ListModelsSchema
Section titled “class vendor_connectors.anthropic.tools.ListModelsSchema”Bases: pydantic.BaseModel
Pydantic schema for the anthropic_list_models tool.
vendor_connectors.anthropic.tools.anthropic_create_message(model: str, prompt: str, max_tokens: int = 1024, system: str | None = None) → dict[str, Any]
Section titled “vendor_connectors.anthropic.tools.anthropic_create_message(model: str, prompt: str, max_tokens: int = 1024, system: str | None = None) → dict[str, Any]”Create a message using Anthropic Claude.
Args: model: Model ID. prompt: User prompt text. max_tokens: Max tokens to generate. system: Optional system prompt.
Returns: Dict with message ID, text, and usage.
vendor_connectors.anthropic.tools.anthropic_list_models() → list[dict[str, Any]]
Section titled “vendor_connectors.anthropic.tools.anthropic_list_models() → list[dict[str, Any]]”List available Anthropic Claude models.
Returns: List of models with ID and display name.
vendor_connectors.anthropic.tools.TOOL_DEFINITIONS
Section titled “vendor_connectors.anthropic.tools.TOOL_DEFINITIONS”None
vendor_connectors.anthropic.tools.get_langchain_tools() → list[Any]
Section titled “vendor_connectors.anthropic.tools.get_langchain_tools() → list[Any]”Get all Anthropic tools as LangChain StructuredTools.
vendor_connectors.anthropic.tools.get_crewai_tools() → list[Any]
Section titled “vendor_connectors.anthropic.tools.get_crewai_tools() → list[Any]”Get all Anthropic tools as CrewAI tools.
vendor_connectors.anthropic.tools.get_strands_tools() → list[Any]
Section titled “vendor_connectors.anthropic.tools.get_strands_tools() → list[Any]”Get all Anthropic tools as plain Python functions for AWS Strands.
vendor_connectors.anthropic.tools.get_tools(framework: str = ‘auto’) → list[Any]
Section titled “vendor_connectors.anthropic.tools.get_tools(framework: str = ‘auto’) → list[Any]”Get Anthropic tools for the specified or auto-detected framework.