Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-ai committed Oct 29, 2024
1 parent 35e7010 commit 1fcd3f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guidance/library/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ def json(
schema : Union[None, Mapping[str, Any], Type[pydantic.BaseModel], pydantic.TypeAdapter]
One of:
- None, in which case any valid JSON will be generated
- A string representing a JSON schema which will be parsed using ``json.loads()``
- A JSON schema object. This is a JSON schema string which has been passed to ``json.loads()``
- A subclass of ``pydantic.BaseModel``
- An instance of ``pydantic.TypeAdapter``
Expand Down

0 comments on commit 1fcd3f0

Please sign in to comment.