get_input_jsonschema() — langchain Function Reference
Architecture documentation for the get_input_jsonschema() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bb994673_65a8_b98b_ca59_66e1a04c78a4["get_input_jsonschema()"] 4a62481c_02cb_a5de_1833_50669d5351a6["Runnable"] bb994673_65a8_b98b_ca59_66e1a04c78a4 -->|defined in| 4a62481c_02cb_a5de_1833_50669d5351a6 08435009_1486_e4f9_5312_91db7c8545a0["get_input_schema()"] bb994673_65a8_b98b_ca59_66e1a04c78a4 -->|calls| 08435009_1486_e4f9_5312_91db7c8545a0 style bb994673_65a8_b98b_ca59_66e1a04c78a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/base.py lines 411–439
def get_input_jsonschema(
self, config: RunnableConfig | None = None
) -> dict[str, Any]:
"""Get a JSON schema that represents the input to the `Runnable`.
Args:
config: A config to use when generating the schema.
Returns:
A JSON schema that represents the input to the `Runnable`.
Example:
```python
from langchain_core.runnables import RunnableLambda
def add_one(x: int) -> int:
return x + 1
runnable = RunnableLambda(add_one)
print(runnable.get_input_jsonschema())
```
!!! version-added "Added in `langchain-core` 0.3.0"
"""
return self.get_input_schema(config).model_json_schema()
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does get_input_jsonschema() do?
get_input_jsonschema() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/base.py.
Where is get_input_jsonschema() defined?
get_input_jsonschema() is defined in libs/core/langchain_core/runnables/base.py at line 411.
What does get_input_jsonschema() call?
get_input_jsonschema() calls 1 function(s): get_input_schema.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free