ObjectStackObjectStack

Feedback Loop

Feedback Loop protocol schemas

Source: packages/spec/src/ai/feedback-loop.zod.ts

TypeScript Usage

import { FeedbackLoop, Issue, Resolution } from '@objectstack/spec/ai';
import type { FeedbackLoop, Issue, Resolution } from '@objectstack/spec/ai';

// Validate data
const result = FeedbackLoop.parse(data);

FeedbackLoop

Properties

PropertyTypeRequiredDescription
issueObject
analysisstringoptionalAI analysis of the root cause
resolutionsObject[]optional
statusEnum<'open' | 'analyzing' | 'resolved' | 'ignored'>

Issue

Properties

PropertyTypeRequiredDescription
idstring
severityEnum<'critical' | 'error' | 'warning' | 'info'>
messagestring
stackTracestringoptional
timestampstring
userIdstringoptional
contextRecord<string, any>optional
sourceObjectoptional

Resolution

Properties

PropertyTypeRequiredDescription
issueIdstring
reasoningstringExplanation of why this fix is needed
confidencenumber
fixObject | Object

On this page