Home / Class/ AnthropicToolsState Class — langchain Architecture

AnthropicToolsState Class — langchain Architecture

Architecture documentation for the AnthropicToolsState class in anthropic_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  163ee7a4_c45b_873c_6578_04c0b4366583["AnthropicToolsState"]
  ce29547b_52a7_efd4_4e55_92320a5dfa56["AgentState"]
  163ee7a4_c45b_873c_6578_04c0b4366583 -->|extends| ce29547b_52a7_efd4_4e55_92320a5dfa56
  5f8ab4b6_f98f_f653_1208_76332f94ecba["anthropic_tools.py"]
  163ee7a4_c45b_873c_6578_04c0b4366583 -->|defined in| 5f8ab4b6_f98f_f653_1208_76332f94ecba

Relationship Graph

Source Code

libs/partners/anthropic/langchain_anthropic/middleware/anthropic_tools.py lines 86–93

class AnthropicToolsState(AgentState):
    """State schema for Anthropic text editor and memory tools."""

    text_editor_files: NotRequired[Annotated[dict[str, FileData], files_reducer]]
    """Virtual file system for text editor tools."""

    memory_files: NotRequired[Annotated[dict[str, FileData], files_reducer]]
    """Virtual file system for memory tools."""

Extends

Frequently Asked Questions

What is the AnthropicToolsState class?
AnthropicToolsState is a class in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/middleware/anthropic_tools.py.
Where is AnthropicToolsState defined?
AnthropicToolsState is defined in libs/partners/anthropic/langchain_anthropic/middleware/anthropic_tools.py at line 86.
What does AnthropicToolsState extend?
AnthropicToolsState extends AgentState.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free