The labels to classify the example into. E.x. ["correct", "incorrect"]
Optional
messagesA list of model messages. You can either use prompt
or messages
but not both.
Uses ModelMessage format for compatibility with AI SDK v5.
Optional
promptA simple text prompt. You can either use prompt
or messages
but not both.
Optional
schemaThe description of the schema for generating the label and explanation.
Optional
schemaThe name of the schema for generating the label and explanation.
Optional
systemSystem message to include in the prompt. Can be used with prompt
or messages
.
Optional
telemetry
Prompt part of the AI function options for model generation. It contains a system message, a simple text prompt, or a list of model messages. Uses ModelMessage format compatible with AI SDK v5 generateObject function.