Home / File/ test_rm_titles.py — langchain Source File

test_rm_titles.py — langchain Source File

Architecture documentation for test_rm_titles.py, a python file in the langchain codebase. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  6c1eaaec_6634_dba1_47d2_138af58a2f44["test_rm_titles.py"]
  120e2591_3e15_b895_72b6_cb26195e40a6["pytest"]
  6c1eaaec_6634_dba1_47d2_138af58a2f44 --> 120e2591_3e15_b895_72b6_cb26195e40a6
  a6f93333_6d02_5473_677b_843422594588["langchain_core.utils.function_calling"]
  6c1eaaec_6634_dba1_47d2_138af58a2f44 --> a6f93333_6d02_5473_677b_843422594588
  style 6c1eaaec_6634_dba1_47d2_138af58a2f44 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import pytest

from langchain_core.utils.function_calling import _rm_titles

output1 = {
    "type": "object",
    "properties": {
        "people": {
            "description": "List of info about people",
            "type": "array",
            "items": {
                "description": "Information about a person.",
                "type": "object",
                "properties": {
                    "name": {"type": "string"},
                    "title": {"description": "person's age", "type": "integer"},
                },
                "required": ["name"],
            },
        }
    },
    "required": ["people"],
}

schema1 = {
    "type": "object",
    "properties": {
        "people": {
            "title": "People",
            "description": "List of info about people",
            "type": "array",
            "items": {
                "title": "Person",
                "description": "Information about a person.",
                "type": "object",
                "properties": {
                    "name": {"title": "Name", "type": "string"},
                    "title": {
                        "title": "Title",
                        "description": "person's age",
                        "type": "integer",
                    },
                },
                "required": ["name"],
            },
        }
    },
    "required": ["people"],
}

output2 = {
    "type": "object",
    "properties": {
        "title": {
            "description": "List of info about people",
            "type": "array",
            "items": {
                "description": "Information about a person.",
                "type": "object",
                "properties": {
// ... (174 more lines)

Subdomains

Functions

Dependencies

  • langchain_core.utils.function_calling
  • pytest

Frequently Asked Questions

What does test_rm_titles.py do?
test_rm_titles.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in test_rm_titles.py?
test_rm_titles.py defines 1 function(s): test_rm_titles.
What does test_rm_titles.py depend on?
test_rm_titles.py imports 2 module(s): langchain_core.utils.function_calling, pytest.
Where is test_rm_titles.py in the architecture?
test_rm_titles.py is located at libs/core/tests/unit_tests/utils/test_rm_titles.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/core/tests/unit_tests/utils).

Analyze Your Own Codebase

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

Try Supermodel Free