_tool_func_annotated_injected() — langchain Function Reference
Architecture documentation for the _tool_func_annotated_injected() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5b8954b6_3d3b_1bed_d222_4e2a95d76e0f["_tool_func_annotated_injected()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] 5b8954b6_3d3b_1bed_d222_4e2a95d76e0f -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style 5b8954b6_3d3b_1bed_d222_4e2a95d76e0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 3237–3247
def _tool_func_annotated_injected(
query: str, limit: int, runtime: Annotated[Any, InjectedToolArg()]
) -> str:
"""Tool with Annotated injected runtime not in schema.
Args:
query: The search query.
limit: Max results.
runtime: Custom runtime (annotated as injected, not in schema).
"""
return f"Query: {query}, Limit: {limit}"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does _tool_func_annotated_injected() do?
_tool_func_annotated_injected() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is _tool_func_annotated_injected() defined?
_tool_func_annotated_injected() is defined in libs/core/tests/unit_tests/test_tools.py at line 3237.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free