I just added a parameter to the method get_format_instructions, to
return directly the JSON instructions without the leading instruction
sentence. I'm planning to use it to define the structure of a JSON
object passed in input, the get_format_instructions().
---------
Co-authored-by: Bagatur <baskaryan@gmail.com>
@ -8,6 +8,14 @@ STRUCTURED_FORMAT_INSTRUCTIONS = """The output should be a markdown code snippet
}}
```"""
STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS="""
```json
{{
{format}
}}
"""
PYDANTIC_FORMAT_INSTRUCTIONS="""The output should be formatted as a JSON instance that conforms to the JSON schema below.
Asanexample,fortheschema{{"properties":{{"foo":{{"title":"Foo","description":"a list of strings","type":"array","items":{{"type":"string"}}}}}},"required":["foo"]}}}}