Home / Function/ annotated_function() — langchain Function Reference

annotated_function() — langchain Function Reference

Architecture documentation for the annotated_function() function in test_function_calling.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d7bce5a8_3f2a_3152_3ea2_98bfc79f8a13["annotated_function()"]
  6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0["test_function_calling.py"]
  d7bce5a8_3f2a_3152_3ea2_98bfc79f8a13 -->|defined in| 6f1e8e6f_d3f9_e590_b17e_1dc8afafdbe0
  a4ca20e5_25b3_5f62_a528_dd4d93e14cff["dummy_function()"]
  d7bce5a8_3f2a_3152_3ea2_98bfc79f8a13 -->|calls| a4ca20e5_25b3_5f62_a528_dd4d93e14cff
  style d7bce5a8_3f2a_3152_3ea2_98bfc79f8a13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/utils/test_function_calling.py lines 50–57

def annotated_function() -> Callable:
    def dummy_function(
        arg1: ExtensionsAnnotated[int, "foo"],
        arg2: ExtensionsAnnotated[Literal["bar", "baz"], "one of 'bar', 'baz'"],
    ) -> None:
        """Dummy function."""

    return dummy_function

Domain

Subdomains

Frequently Asked Questions

What does annotated_function() do?
annotated_function() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_function_calling.py.
Where is annotated_function() defined?
annotated_function() is defined in libs/core/tests/unit_tests/utils/test_function_calling.py at line 50.
What does annotated_function() call?
annotated_function() calls 1 function(s): dummy_function.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free