Skip to content

Commit ea5a792

Browse files
committed
fix test and prompt passthrough
1 parent b04f1e5 commit ea5a792

2 files changed

Lines changed: 2325 additions & 2324 deletions

File tree

src/marvin/fns/generate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,14 @@ async def generate_schema_async(
150150
) -> JSONSchema:
151151
"""Generates a JSON schema from a description."""
152152

153-
prompt = inspect.cleandoc("""
154-
Your job is to generate JSON Schemas that match the user's instructions. The latest instruction is:
153+
prompt = prompt or inspect.cleandoc("""
154+
Your job is to generate JSON schemas that match the user's instructions. The latest instruction is:
155155
156156
<instructions>
157157
{{instructions}}
158158
</instructions>
159159
160+
Don't include extra nesting (e.g. const) unless the user explicitly asks for it - ie simple as possible.
160161
---
161162
{% if base_schema %}
162163
Base your response on the following schema as much as possible:

0 commit comments

Comments
 (0)