ffb-production.schema.ts 749 B

123456789101112131415161718192021222324252627
  1. export interface FFBProduction {
  2. _id?: string;
  3. productionDate: Date;
  4. site: string;
  5. phase: string;
  6. block: string;
  7. weight: number;
  8. weightUom: string;
  9. quantity: number;
  10. quantityUom: string;
  11. }
  12. export interface ThoughtPayload {
  13. node: string;
  14. status: 'processing' | 'completed' | 'error';
  15. message?: string; // Human-readable status (e.g., "Analyzing intent...")
  16. context?: any;
  17. query?: any;
  18. filter?: any;
  19. pipeline?: any;
  20. results?: any;
  21. resultsCount?: number;
  22. dataContextLength?: number;
  23. input?: any; // The raw data going IN
  24. output?: any; // The data coming OUT (replacing 'result', 'results', 'pipeline')
  25. metadata?: Record<string, any>; // For extra stuff like resultsCount or contextLength
  26. }