test_no_filtering_for_string_input() — langchain Function Reference
Architecture documentation for the test_no_filtering_for_string_input() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 517ab386_90cf_1afe_fbe9_3f1d8f2ca9d3["test_no_filtering_for_string_input()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] 517ab386_90cf_1afe_fbe9_3f1d8f2ca9d3 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style 517ab386_90cf_1afe_fbe9_3f1d8f2ca9d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 3107–3127
def test_no_filtering_for_string_input() -> None:
"""Test that string inputs are not filtered (passed as None)."""
@tool
def simple_tool(query: str) -> str:
"""Simple tool with string input.
Args:
query: The query string.
"""
return f"Result: {query}"
handler = CallbackHandlerWithInputCapture(captured_inputs=[])
result = simple_tool.invoke("test query", config={"callbacks": [handler]})
assert result == "Result: test query"
assert handler.tool_starts == 1
assert len(handler.captured_inputs) == 1
# String inputs should result in None for the inputs parameter
assert handler.captured_inputs[0] is None
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_no_filtering_for_string_input() do?
test_no_filtering_for_string_input() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_no_filtering_for_string_input() defined?
test_no_filtering_for_string_input() is defined in libs/core/tests/unit_tests/test_tools.py at line 3107.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free