Make the zod schema a main parameter instead of an additional param

This commit is contained in:
Kenny Vaneetvelde
2024-02-06 13:02:30 +01:00
parent 113415e2c9
commit 90e6a804e4
2 changed files with 70 additions and 72 deletions
@@ -46,9 +46,8 @@ class AdvancedStructuredOutputParser implements INode {
"Action", "Comedy", "Drama", "Fantasy", "Horror",
"Mystery", "Romance", "Science Fiction", "Thriller", "Documentary"
]).array().max(2), // Array of genres, max of 2 from the defined enum
shortDescription: z.string().max(500) // Short description, max 150 characters
})`,
additionalParams: true
shortDescription: z.string().max(500) // Short description, max 500 characters
})`
}
]
}