MCPcopy Create free account
hub / github.com/aetherstate/GODMOD3.AI / MetadataEvent

Interface MetadataEvent

api/lib/metadata.ts:31–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// ── Types ────────────────────────────────────────────────────────────
30
31export interface MetadataEvent {
32 id: string
33 timestamp: number
34
35 // Request shape
36 endpoint: string
37 mode: 'standard' | 'ultraplinian' | 'consortium'
38 tier?: string // fast | standard | full (ultraplinian only)
39 stream: boolean
40
41 // Pipeline config (what was enabled, not what it produced)
42 pipeline: {
43 godmode: boolean
44 autotune: boolean
45 parseltongue: boolean
46 stm_modules: string[]
47 strategy?: string
48 }
49
50 // AutoTune metadata (context detection only, no content)
51 autotune?: {
52 detected_context: string
53 confidence: number
54 }
55
56 // Model metadata
57 model?: string // single-model mode
58 models_queried?: number // ultraplinian
59 models_succeeded?: number
60
61 // Per-model results (no content, just numbers)
62 model_results?: Array<{
63 model: string
64 score: number
65 duration_ms: number
66 success: boolean
67 content_length: number
68 error_type?: string // categorized: 'timeout' | 'rate_limit' | 'auth' | 'model_error' | 'empty' | 'unknown'
69 }>
70
71 // Winner metadata
72 winner?: {
73 model: string
74 score: number
75 duration_ms: number
76 content_length: number
77 }
78
79 // Response metadata
80 total_duration_ms: number
81 response_length: number
82
83 // Liquid Response metadata (streaming upgrades)
84 liquid?: {
85 upgrades: number // how many leader changes happened
86 first_response_ms: number // time to first leader
87 }
88}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected