Skip to content

Plugin Returns message.text Instead of message.content[], Causing Schema Validation Failure #1

@michaelrokosh

Description

@michaelrokosh

Current Behavior:
The plugin places the generated text into message.text, causing Genkit's internal validation to fail with the "must have required property 'content'" error, preventing the user's Zod schema from ever being applied. Genkit's ai.generate() won't validate the response if message.content is missing, even if the text is valid JSON. This blocks the structured output flow early.

Expected Behavior:
The plugin should populate message.content with a text entry instead of message.text. This would allow structured output parsing to work correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions