dummy_structured_tool() — langchain Function Reference
Architecture documentation for the dummy_structured_tool() function in test_function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 514ddc6e_c6be_ca7a_8ff4_53cc92d346bc["dummy_structured_tool()"] 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"] 514ddc6e_c6be_ca7a_8ff4_53cc92d346bc -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0 style 514ddc6e_c6be_ca7a_8ff4_53cc92d346bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_function_calling.py lines 116–126
def dummy_structured_tool() -> StructuredTool:
class Schema(BaseModel):
arg1: int = Field(..., description="foo")
arg2: Literal["bar", "baz"] = Field(..., description="one of 'bar', 'baz'")
return StructuredTool.from_function(
lambda _: None,
name="dummy_function",
description="Dummy function.",
args_schema=Schema,
)
Domain
Subdomains
Source
Frequently Asked Questions
What does dummy_structured_tool() do?
dummy_structured_tool() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is dummy_structured_tool() defined?
dummy_structured_tool() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 116.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free