get_input_jsonschema(
self,
config: RunnableConfig | None = None,
) -> dict[str,| Name | Type | Description |
|---|---|---|
config | RunnableConfig | None | Default: None |
Get a JSON schema that represents the input to the Runnable.
Example:
from langchain_core.runnables import RunnableLambda
def add_one(x: int) -> int:
return x + 1
runnable = RunnableLambda(add_one)
print(runnable.get_input_jsonschema())A config to use when generating the schema.