test_fn_injected_arg_with_schema() — langchain Function Reference
Architecture documentation for the test_fn_injected_arg_with_schema() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD db189915_b782_7b1d_75be_f9811e75a650["test_fn_injected_arg_with_schema()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] db189915_b782_7b1d_75be_f9811e75a650 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style db189915_b782_7b1d_75be_f9811e75a650 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 1906–1918
def test_fn_injected_arg_with_schema(tool_: Callable[..., Any]) -> None:
assert convert_to_openai_function(tool_) == {
"name": tool_.__name__,
"description": "my_tool.",
"parameters": {
"type": "object",
"properties": {
"x": {"type": "integer"},
"y": {"type": "string"},
},
"required": ["x", "y"],
},
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_fn_injected_arg_with_schema() do?
test_fn_injected_arg_with_schema() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_fn_injected_arg_with_schema() defined?
test_fn_injected_arg_with_schema() is defined in libs/core/tests/unit_tests/test_tools.py at line 1906.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free