tweak: make question valdiation more lax to avoid tool call failures
This commit is contained in:
parent
b1072053ba
commit
397ee419d1
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ export namespace Question {
|
||||||
|
|
||||||
export const Option = z
|
export const Option = z
|
||||||
.object({
|
.object({
|
||||||
label: z.string().max(30).describe("Display text (1-5 words, concise)"),
|
label: z.string().describe("Display text (1-5 words, concise)"),
|
||||||
description: z.string().describe("Explanation of choice"),
|
description: z.string().describe("Explanation of choice"),
|
||||||
})
|
})
|
||||||
.meta({
|
.meta({
|
||||||
|
|
@ -21,7 +21,7 @@ export namespace Question {
|
||||||
export const Info = z
|
export const Info = z
|
||||||
.object({
|
.object({
|
||||||
question: z.string().describe("Complete question"),
|
question: z.string().describe("Complete question"),
|
||||||
header: z.string().max(30).describe("Very short label (max 30 chars)"),
|
header: z.string().describe("Very short label (max 30 chars)"),
|
||||||
options: z.array(Option).describe("Available choices"),
|
options: z.array(Option).describe("Available choices"),
|
||||||
multiple: z.boolean().optional().describe("Allow selecting multiple choices"),
|
multiple: z.boolean().optional().describe("Allow selecting multiple choices"),
|
||||||
custom: z.boolean().optional().describe("Allow typing a custom answer (default: true)"),
|
custom: z.boolean().optional().describe("Allow typing a custom answer (default: true)"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue