dereference_refs#

langchain_core.utils.json_schema.dereference_refs(schema_obj: dict, *, full_schema: dict | None = None, skip_keys: Sequence[str] | None = None) dict[source]#

Try to substitute $refs in JSON Schema.

Parameters:
  • schema_obj (dict) – The schema object to dereference.

  • full_schema (dict | None) – The full schema object. Defaults to None.

  • skip_keys (Sequence[str] | None) – The keys to skip. Defaults to None.

Returns:

The dereferenced schema object.

Return type:

dict