mattrguerra/cortexmainPrivate on GitHub, published here in full

Message.ts

Language TypeScript825 B11 lines

src/ipc/gen/Message.ts

  1. // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
  2. import type { AttachmentMeta } from "./AttachmentMeta";
  3. import type { Prices } from "./Prices";
  4. import type { Usage } from "./Usage";
  5. import type { UsageSource } from "./UsageSource";
  6. export type Message = { id: string, conversation_id: string, role: string, content: string, reasoning: string | null,
  7. /**
  8. * `complete`, `streaming`, `cancelled` or `error`
  9. */
  10. status: string, error_kind: string | null, error_message: string | null, provider_id: string | null, model_id: string | null, usage: Usage, usage_source: UsageSource, prices: Prices | null, cost_nanousd: number, finish_reason: string | null, ttft_ms: number | null, duration_ms: number | null, created_at: number, attachments: Array<AttachmentMeta>, };