Home / Function/ create() — anthropic-sdk-python Function Reference

create() — anthropic-sdk-python Function Reference

Architecture documentation for the create() function in basic.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  13e9cc96_46e7_62d7_b163_144f30ec7903["create()"]
  c2730250_7059_6f44_aa62_71ce88c5a804["LocalFilesystemMemoryTool"]
  13e9cc96_46e7_62d7_b163_144f30ec7903 -->|defined in| c2730250_7059_6f44_aa62_71ce88c5a804
  42a84966_de9f_298e_a98d_c527baf8aa0e["_validate_path()"]
  13e9cc96_46e7_62d7_b163_144f30ec7903 -->|calls| 42a84966_de9f_298e_a98d_c527baf8aa0e
  style 13e9cc96_46e7_62d7_b163_144f30ec7903 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

examples/memory/basic.py lines 113–117

    def create(self, command: BetaMemoryTool20250818CreateCommand) -> str:
        full_path = self._validate_path(command.path)
        full_path.parent.mkdir(parents=True, exist_ok=True)
        full_path.write_text(command.file_text, encoding="utf-8")
        return f"File created successfully at {command.path}"

Subdomains

Frequently Asked Questions

What does create() do?
create() is a function in the anthropic-sdk-python codebase, defined in examples/memory/basic.py.
Where is create() defined?
create() is defined in examples/memory/basic.py at line 113.
What does create() call?
create() calls 1 function(s): _validate_path.

Analyze Your Own Codebase

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

Try Supermodel Free