test_no_escaping() — langchain Function Reference
Architecture documentation for the test_no_escaping() function in test_xml.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a1a7d4ab_baff_9292_223d_1f99fa4bb5fa["test_no_escaping()"] 8e952513_6b41_3d5a_f5ac_e4a1e0bd30b1["test_xml.py"] a1a7d4ab_baff_9292_223d_1f99fa4bb5fa -->|defined in| 8e952513_6b41_3d5a_f5ac_e4a1e0bd30b1 style a1a7d4ab_baff_9292_223d_1f99fa4bb5fa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/format_scratchpad/test_xml.py lines 65–80
def test_no_escaping() -> None:
"""Test that escaping can be disabled."""
# Arrange
agent_action = AgentAction(tool="Tool1", tool_input="Input1", log="")
observation = "Observation1"
intermediate_steps = [(agent_action, observation)]
# Act
result = format_xml(intermediate_steps, escape_format=None)
# Assert
expected_result = (
"<tool>Tool1</tool><tool_input>Input1</tool_input>"
"<observation>Observation1</observation>"
)
assert result == expected_result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_no_escaping() do?
test_no_escaping() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_xml.py.
Where is test_no_escaping() defined?
test_no_escaping() is defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_xml.py at line 65.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free