Skip to content

Commit d977e91

Browse files
authored
fix: better clarify to agents how parameters should be defined (#29)
1 parent b245fb1 commit d977e91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/renderItem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ How to use:
5151
5252
Guidance:
5353
- Never submit more than one render with the same parameters, unless the user explicitly requests it.
54+
- Template parameters must be nested under the top-level \`parameters\` object (do not place them at the top level).
5455
- Use parameters to customize the render.
5556
- All mandatory parameters must be provided.
5657
- Provide values for optional parameters if it makes sense.
@@ -64,6 +65,8 @@ Guidance:
6465
- If a parameter has a default value and the user does not provide a value, the default will be used.
6566
- If the user is unsure about a parameter, ask for clarification rather than guessing.
6667
- When referencing parameters in conversation, use their \`label\` or \`description\` for clarity.
68+
Example:
69+
- Input shape: { isDesign, projectDesignId, templateVariantId, parameters: { title: "My Title", image: "https://..." } }
6770
6871
Use when:
6972
- The user wants to create a video from a specific template/variant with defined parameters.

0 commit comments

Comments
 (0)