test_create_tool_keyword_args() — langchain Function Reference
Architecture documentation for the test_create_tool_keyword_args() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5d2b1619_63fc_408a_9762_b3186b455c94["test_create_tool_keyword_args()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] 5d2b1619_63fc_408a_9762_b3186b455c94 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style 5d2b1619_63fc_408a_9762_b3186b455c94 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 745–751
def test_create_tool_keyword_args() -> None:
"""Test that keyword arguments are allowed."""
test_tool = Tool(name="test_name", func=lambda x: x, description="test_description")
assert test_tool.is_single_input
assert test_tool.invoke("foo") == "foo"
assert test_tool.name == "test_name"
assert test_tool.description == "test_description"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_create_tool_keyword_args() do?
test_create_tool_keyword_args() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_create_tool_keyword_args() defined?
test_create_tool_keyword_args() is defined in libs/core/tests/unit_tests/test_tools.py at line 745.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free