dereference_refs#
- langchain_core.utils.json_schema.dereference_refs(
- schema_obj: dict,
- *,
- full_schema: dict | None = None,
- skip_keys: Sequence[str] | None = None,
Try to substitute $refs in JSON Schema.
- Parameters:
schema_obj (dict) β The fragment to dereference.
full_schema (Optional[dict]) β The complete schema (defaults to schema_obj).
skip_keys (Optional[Sequence[str]]) β
- If None (the default), we skip recursion under β$defsβ and only
shallow-inline refs.
- If provided (even as an empty list), we will recurse under every key and
deep-inline all refs.
- Return type:
dict