Skip to content

Variable: MastraFeedbackResponseSchema

const MastraFeedbackResponseSchema: ZodObject<{ assessmentId: ZodOptional<ZodString>; ok: ZodBoolean; }, $strip>

Response from POST ${basePath}/route/feedback.

ok is true when the assessment was recorded. It can be false (with ok: false) without the call throwing - most commonly because the trace hasn’t finished exporting to MLflow yet (trace export is asynchronous); the client surfaces a soft “try again” hint rather than an error. assessmentId is the created assessment’s id on success.