Home / Function/ _get_description_from_runnable() — langchain Function Reference

_get_description_from_runnable() — langchain Function Reference

Architecture documentation for the _get_description_from_runnable() function in convert.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  12dc95ee_e34e_a064_3ba2_5939f9798e09["_get_description_from_runnable()"]
  6e48690f_ba38_f154_c479_86fd0c4ec707["convert.py"]
  12dc95ee_e34e_a064_3ba2_5939f9798e09 -->|defined in| 6e48690f_ba38_f154_c479_86fd0c4ec707
  9a0bf2ef_bf97_2fbb_77da_f7816cedcfef["convert_runnable_to_tool()"]
  9a0bf2ef_bf97_2fbb_77da_f7816cedcfef -->|calls| 12dc95ee_e34e_a064_3ba2_5939f9798e09
  style 12dc95ee_e34e_a064_3ba2_5939f9798e09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tools/convert.py lines 393–396

def _get_description_from_runnable(runnable: Runnable) -> str:
    """Generate a placeholder description of a `Runnable`."""
    input_schema = runnable.input_schema.model_json_schema()
    return f"Takes {input_schema}."

Domain

Subdomains

Frequently Asked Questions

What does _get_description_from_runnable() do?
_get_description_from_runnable() is a function in the langchain codebase, defined in libs/core/langchain_core/tools/convert.py.
Where is _get_description_from_runnable() defined?
_get_description_from_runnable() is defined in libs/core/langchain_core/tools/convert.py at line 393.
What calls _get_description_from_runnable()?
_get_description_from_runnable() is called by 1 function(s): convert_runnable_to_tool.

Analyze Your Own Codebase

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

Try Supermodel Free