We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04f1e5 commit ea5a792Copy full SHA for ea5a792
2 files changed
src/marvin/fns/generate.py
@@ -150,13 +150,14 @@ async def generate_schema_async(
150
) -> JSONSchema:
151
"""Generates a JSON schema from a description."""
152
153
- prompt = inspect.cleandoc("""
154
- Your job is to generate JSON Schemas that match the user's instructions. The latest instruction is:
+ prompt = prompt or inspect.cleandoc("""
+ Your job is to generate JSON schemas that match the user's instructions. The latest instruction is:
155
156
<instructions>
157
{{instructions}}
158
</instructions>
159
160
+ Don't include extra nesting (e.g. const) unless the user explicitly asks for it - ie simple as possible.
161
---
162
{% if base_schema %}
163
Base your response on the following schema as much as possible:
0 commit comments