Home / Function/ test_custom_system_prompt() — langchain Function Reference

test_custom_system_prompt() — langchain Function Reference

Architecture documentation for the test_custom_system_prompt() function in test_anthropic_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  6497f805_9de2_e558_2ff3_6878406be4a1["test_custom_system_prompt()"]
  3dd8ad3a_db58_930d_e06e_7443ab2edff1["TestMemoryMiddleware"]
  6497f805_9de2_e558_2ff3_6878406be4a1 -->|defined in| 3dd8ad3a_db58_930d_e06e_7443ab2edff1
  style 6497f805_9de2_e558_2ff3_6878406be4a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py lines 96–100

    def test_custom_system_prompt(self) -> None:
        """Test custom system prompt can be set."""
        custom_prompt = "Custom memory instructions"
        middleware = StateClaudeMemoryMiddleware(system_prompt=custom_prompt)
        assert middleware.system_prompt == custom_prompt

Domain

Subdomains

Frequently Asked Questions

What does test_custom_system_prompt() do?
test_custom_system_prompt() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py.
Where is test_custom_system_prompt() defined?
test_custom_system_prompt() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_anthropic_tools.py at line 96.

Analyze Your Own Codebase

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

Try Supermodel Free