@agentskit/chat-protocol 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ declare const AskEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
18
18
  }, z.core.$strict>, z.ZodObject<{
19
19
  type: z.ZodLiteral<"error">;
20
20
  message: z.ZodString;
21
+ code: z.ZodOptional<z.ZodString>;
22
+ retryable: z.ZodOptional<z.ZodBoolean>;
21
23
  }, z.core.$strict>], "type">;
22
24
  type AskEvent = z.infer<typeof AskEventSchema>;
23
25
  type AskToolEvent = Extract<AskEvent, {
@@ -31,6 +33,428 @@ interface AskEventDecodeResult {
31
33
  /** Decodes bounded complete v1 Ask NDJSON records and retains one bounded partial line. */
32
34
  declare function decodeAskEvents(buffer: string): AskEventDecodeResult;
33
35
 
36
+ declare const ASK_BACKEND_PROTOCOL: "agentskit.chat.ask";
37
+ declare const ASK_BACKEND_PROTOCOL_VERSION: 1;
38
+ declare const ASK_BACKEND_MAX_MESSAGES = 64;
39
+ declare const ASK_BACKEND_MAX_MESSAGE_CHARS = 16384;
40
+ declare const ASK_BACKEND_MAX_SOURCES = 8;
41
+ declare const AskBackendMessageSchema: z.ZodReadonly<z.ZodObject<{
42
+ role: z.ZodEnum<{
43
+ user: "user";
44
+ assistant: "assistant";
45
+ }>;
46
+ content: z.ZodString;
47
+ }, z.core.$strict>>;
48
+ /** Additive v1 request accepted by both hosted and self-hosted Ask handlers. */
49
+ declare const AskBackendRequestSchema: z.ZodReadonly<z.ZodObject<{
50
+ protocol: z.ZodOptional<z.ZodLiteral<"agentskit.chat.ask">>;
51
+ version: z.ZodOptional<z.ZodLiteral<1>>;
52
+ sessionId: z.ZodOptional<z.ZodString>;
53
+ messages: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
54
+ role: z.ZodEnum<{
55
+ user: "user";
56
+ assistant: "assistant";
57
+ }>;
58
+ content: z.ZodString;
59
+ }, z.core.$strict>>>>;
60
+ deterministic: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
61
+ protocol: z.ZodLiteral<"agentskit.chat.answer">;
62
+ version: z.ZodLiteral<1>;
63
+ outcome: z.ZodLiteral<"answer">;
64
+ query: z.ZodString;
65
+ normalizedQuery: z.ZodString;
66
+ answer: z.ZodReadonly<z.ZodObject<{
67
+ markdown: z.ZodString;
68
+ citations: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
69
+ id: z.ZodString;
70
+ title: z.ZodString;
71
+ href: z.ZodString;
72
+ }, z.core.$strip>>>>;
73
+ }, z.core.$strip>>;
74
+ provenance: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
75
+ source: z.ZodLiteral<"local">;
76
+ artifactId: z.ZodString;
77
+ contentHash: z.ZodString;
78
+ entryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
79
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
80
+ source: z.ZodLiteral<"backend">;
81
+ provider: z.ZodOptional<z.ZodString>;
82
+ model: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strip>>]>;
84
+ confidence: z.ZodReadonly<z.ZodObject<{
85
+ level: z.ZodEnum<{
86
+ high: "high";
87
+ medium: "medium";
88
+ low: "low";
89
+ }>;
90
+ basis: z.ZodEnum<{
91
+ exact: "exact";
92
+ backend: "backend";
93
+ ambiguous: "ambiguous";
94
+ miss: "miss";
95
+ stale: "stale";
96
+ corrupt: "corrupt";
97
+ offline: "offline";
98
+ }>;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
101
+ protocol: z.ZodLiteral<"agentskit.chat.answer">;
102
+ version: z.ZodLiteral<1>;
103
+ outcome: z.ZodLiteral<"choices">;
104
+ query: z.ZodString;
105
+ normalizedQuery: z.ZodString;
106
+ message: z.ZodString;
107
+ suggestions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
108
+ id: z.ZodString;
109
+ label: z.ZodString;
110
+ value: z.ZodString;
111
+ }, z.core.$strip>>>>;
112
+ provenance: z.ZodReadonly<z.ZodObject<{
113
+ source: z.ZodLiteral<"local">;
114
+ artifactId: z.ZodString;
115
+ contentHash: z.ZodString;
116
+ entryIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
117
+ }, z.core.$strip>>;
118
+ confidence: z.ZodReadonly<z.ZodObject<{
119
+ level: z.ZodEnum<{
120
+ high: "high";
121
+ medium: "medium";
122
+ low: "low";
123
+ }>;
124
+ basis: z.ZodEnum<{
125
+ exact: "exact";
126
+ backend: "backend";
127
+ ambiguous: "ambiguous";
128
+ miss: "miss";
129
+ stale: "stale";
130
+ corrupt: "corrupt";
131
+ offline: "offline";
132
+ }>;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
135
+ protocol: z.ZodLiteral<"agentskit.chat.answer">;
136
+ version: z.ZodLiteral<1>;
137
+ outcome: z.ZodLiteral<"escalation">;
138
+ query: z.ZodString;
139
+ normalizedQuery: z.ZodString;
140
+ message: z.ZodString;
141
+ reason: z.ZodEnum<{
142
+ miss: "miss";
143
+ stale: "stale";
144
+ corrupt: "corrupt";
145
+ offline: "offline";
146
+ }>;
147
+ candidateEntryIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
148
+ confidence: z.ZodReadonly<z.ZodObject<{
149
+ level: z.ZodEnum<{
150
+ high: "high";
151
+ medium: "medium";
152
+ low: "low";
153
+ }>;
154
+ basis: z.ZodEnum<{
155
+ exact: "exact";
156
+ backend: "backend";
157
+ ambiguous: "ambiguous";
158
+ miss: "miss";
159
+ stale: "stale";
160
+ corrupt: "corrupt";
161
+ offline: "offline";
162
+ }>;
163
+ }, z.core.$strip>>;
164
+ }, z.core.$strip>>], "outcome"> & z.ZodType<Readonly<{
165
+ protocol: "agentskit.chat.answer";
166
+ version: 1;
167
+ outcome: "escalation";
168
+ query: string;
169
+ normalizedQuery: string;
170
+ message: string;
171
+ reason: "miss" | "stale" | "corrupt" | "offline";
172
+ confidence: Readonly<{
173
+ level: "high" | "medium" | "low";
174
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
175
+ }>;
176
+ candidateEntryIds?: readonly string[] | undefined;
177
+ }>, Readonly<{
178
+ protocol: "agentskit.chat.answer";
179
+ version: 1;
180
+ outcome: "answer";
181
+ query: string;
182
+ normalizedQuery: string;
183
+ answer: Readonly<{
184
+ markdown: string;
185
+ citations: readonly Readonly<{
186
+ id: string;
187
+ title: string;
188
+ href: string;
189
+ }>[];
190
+ }>;
191
+ provenance: Readonly<{
192
+ source: "local";
193
+ artifactId: string;
194
+ contentHash: string;
195
+ entryIds: readonly string[];
196
+ }> | Readonly<{
197
+ source: "backend";
198
+ provider?: string | undefined;
199
+ model?: string | undefined;
200
+ }>;
201
+ confidence: Readonly<{
202
+ level: "high" | "medium" | "low";
203
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
204
+ }>;
205
+ }> | Readonly<{
206
+ protocol: "agentskit.chat.answer";
207
+ version: 1;
208
+ outcome: "choices";
209
+ query: string;
210
+ normalizedQuery: string;
211
+ message: string;
212
+ suggestions: readonly Readonly<{
213
+ id: string;
214
+ label: string;
215
+ value: string;
216
+ }>[];
217
+ provenance: Readonly<{
218
+ source: "local";
219
+ artifactId: string;
220
+ contentHash: string;
221
+ entryIds: readonly string[];
222
+ }>;
223
+ confidence: Readonly<{
224
+ level: "high" | "medium" | "low";
225
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
226
+ }>;
227
+ }> | Readonly<{
228
+ protocol: "agentskit.chat.answer";
229
+ version: 1;
230
+ outcome: "escalation";
231
+ query: string;
232
+ normalizedQuery: string;
233
+ message: string;
234
+ reason: "miss" | "stale" | "corrupt" | "offline";
235
+ confidence: Readonly<{
236
+ level: "high" | "medium" | "low";
237
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
238
+ }>;
239
+ candidateEntryIds?: readonly string[] | undefined;
240
+ }>, z.core.$ZodTypeInternals<Readonly<{
241
+ protocol: "agentskit.chat.answer";
242
+ version: 1;
243
+ outcome: "escalation";
244
+ query: string;
245
+ normalizedQuery: string;
246
+ message: string;
247
+ reason: "miss" | "stale" | "corrupt" | "offline";
248
+ confidence: Readonly<{
249
+ level: "high" | "medium" | "low";
250
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
251
+ }>;
252
+ candidateEntryIds?: readonly string[] | undefined;
253
+ }>, Readonly<{
254
+ protocol: "agentskit.chat.answer";
255
+ version: 1;
256
+ outcome: "answer";
257
+ query: string;
258
+ normalizedQuery: string;
259
+ answer: Readonly<{
260
+ markdown: string;
261
+ citations: readonly Readonly<{
262
+ id: string;
263
+ title: string;
264
+ href: string;
265
+ }>[];
266
+ }>;
267
+ provenance: Readonly<{
268
+ source: "local";
269
+ artifactId: string;
270
+ contentHash: string;
271
+ entryIds: readonly string[];
272
+ }> | Readonly<{
273
+ source: "backend";
274
+ provider?: string | undefined;
275
+ model?: string | undefined;
276
+ }>;
277
+ confidence: Readonly<{
278
+ level: "high" | "medium" | "low";
279
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
280
+ }>;
281
+ }> | Readonly<{
282
+ protocol: "agentskit.chat.answer";
283
+ version: 1;
284
+ outcome: "choices";
285
+ query: string;
286
+ normalizedQuery: string;
287
+ message: string;
288
+ suggestions: readonly Readonly<{
289
+ id: string;
290
+ label: string;
291
+ value: string;
292
+ }>[];
293
+ provenance: Readonly<{
294
+ source: "local";
295
+ artifactId: string;
296
+ contentHash: string;
297
+ entryIds: readonly string[];
298
+ }>;
299
+ confidence: Readonly<{
300
+ level: "high" | "medium" | "low";
301
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
302
+ }>;
303
+ }> | Readonly<{
304
+ protocol: "agentskit.chat.answer";
305
+ version: 1;
306
+ outcome: "escalation";
307
+ query: string;
308
+ normalizedQuery: string;
309
+ message: string;
310
+ reason: "miss" | "stale" | "corrupt" | "offline";
311
+ confidence: Readonly<{
312
+ level: "high" | "medium" | "low";
313
+ basis: "exact" | "backend" | "ambiguous" | "miss" | "stale" | "corrupt" | "offline";
314
+ }>;
315
+ candidateEntryIds?: readonly string[] | undefined;
316
+ }>>>>;
317
+ }, z.core.$strict>>;
318
+ declare const AskBackendSourceSchema: z.ZodReadonly<z.ZodObject<{
319
+ id: z.ZodString;
320
+ title: z.ZodString;
321
+ href: z.ZodString;
322
+ excerpt: z.ZodString;
323
+ }, z.core.$strict>>;
324
+ declare const AskBackendSiteConfigSchema: z.ZodReadonly<z.ZodObject<{
325
+ protocol: z.ZodLiteral<"agentskit.chat.backend-site">;
326
+ version: z.ZodLiteral<1>;
327
+ siteId: z.ZodString;
328
+ assistant: z.ZodReadonly<z.ZodObject<{
329
+ id: z.ZodString;
330
+ name: z.ZodString;
331
+ suggestions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
332
+ }, z.core.$strict>>;
333
+ corpus: z.ZodReadonly<z.ZodObject<{
334
+ id: z.ZodString;
335
+ mode: z.ZodEnum<{
336
+ local: "local";
337
+ federated: "federated";
338
+ }>;
339
+ }, z.core.$strict>>;
340
+ components: z.ZodReadonly<z.ZodArray<z.ZodString>>;
341
+ actions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
342
+ limits: z.ZodReadonly<z.ZodObject<{
343
+ requestTimeoutMs: z.ZodNumber;
344
+ retrievalTimeoutMs: z.ZodNumber;
345
+ generationTimeoutMs: z.ZodNumber;
346
+ maxSources: z.ZodNumber;
347
+ }, z.core.$strict>>;
348
+ persistence: z.ZodReadonly<z.ZodObject<{
349
+ mode: z.ZodEnum<{
350
+ disabled: "disabled";
351
+ required: "required";
352
+ }>;
353
+ }, z.core.$strict>>;
354
+ }, z.core.$strict>>;
355
+ declare const AskBackendUsageSchema: z.ZodReadonly<z.ZodObject<{
356
+ inputTokens: z.ZodOptional<z.ZodNumber>;
357
+ outputTokens: z.ZodOptional<z.ZodNumber>;
358
+ totalTokens: z.ZodOptional<z.ZodNumber>;
359
+ costUsd: z.ZodOptional<z.ZodNumber>;
360
+ model: z.ZodOptional<z.ZodString>;
361
+ }, z.core.$strict>>;
362
+ declare const AskBackendSessionRecordSchema: z.ZodReadonly<z.ZodObject<{
363
+ revision: z.ZodNumber;
364
+ messages: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
365
+ role: z.ZodEnum<{
366
+ user: "user";
367
+ assistant: "assistant";
368
+ }>;
369
+ content: z.ZodString;
370
+ }, z.core.$strict>>>>;
371
+ }, z.core.$strict>>;
372
+ declare const AskBackendDiagnosticSchema: z.ZodReadonly<z.ZodObject<{
373
+ code: z.ZodEnum<{
374
+ ASK_INVALID_REQUEST: "ASK_INVALID_REQUEST";
375
+ ASK_UNAUTHORIZED: "ASK_UNAUTHORIZED";
376
+ ASK_FORBIDDEN: "ASK_FORBIDDEN";
377
+ ASK_RATE_LIMITED: "ASK_RATE_LIMITED";
378
+ ASK_TIMEOUT: "ASK_TIMEOUT";
379
+ ASK_CANCELLED: "ASK_CANCELLED";
380
+ ASK_RETRIEVAL_FAILED: "ASK_RETRIEVAL_FAILED";
381
+ ASK_NO_GROUNDED_SOURCES: "ASK_NO_GROUNDED_SOURCES";
382
+ ASK_GENERATION_FAILED: "ASK_GENERATION_FAILED";
383
+ ASK_PERSISTENCE_CONFLICT: "ASK_PERSISTENCE_CONFLICT";
384
+ ASK_INTERNAL: "ASK_INTERNAL";
385
+ }>;
386
+ message: z.ZodString;
387
+ retryable: z.ZodBoolean;
388
+ }, z.core.$strict>>;
389
+ declare const AskBackendMetricNameSchema: z.ZodEnum<{
390
+ "request.total_ms": "request.total_ms";
391
+ "stream.first_event_ms": "stream.first_event_ms";
392
+ "stream.first_token_ms": "stream.first_token_ms";
393
+ "stream.bytes": "stream.bytes";
394
+ "stream.events": "stream.events";
395
+ "stream.snapshots": "stream.snapshots";
396
+ "deterministic.fallback": "deterministic.fallback";
397
+ "retrieval.total_ms": "retrieval.total_ms";
398
+ "retrieval.documents": "retrieval.documents";
399
+ "persistence.total_ms": "persistence.total_ms";
400
+ "cancellation.count": "cancellation.count";
401
+ "conflict.count": "conflict.count";
402
+ "error.count": "error.count";
403
+ "usage.input_tokens": "usage.input_tokens";
404
+ "usage.output_tokens": "usage.output_tokens";
405
+ "usage.total_tokens": "usage.total_tokens";
406
+ "cost.usd": "cost.usd";
407
+ }>;
408
+ declare const AskBackendMetricSchema: z.ZodReadonly<z.ZodObject<{
409
+ protocol: z.ZodLiteral<"agentskit.chat.backend-metric">;
410
+ version: z.ZodLiteral<1>;
411
+ name: z.ZodEnum<{
412
+ "request.total_ms": "request.total_ms";
413
+ "stream.first_event_ms": "stream.first_event_ms";
414
+ "stream.first_token_ms": "stream.first_token_ms";
415
+ "stream.bytes": "stream.bytes";
416
+ "stream.events": "stream.events";
417
+ "stream.snapshots": "stream.snapshots";
418
+ "deterministic.fallback": "deterministic.fallback";
419
+ "retrieval.total_ms": "retrieval.total_ms";
420
+ "retrieval.documents": "retrieval.documents";
421
+ "persistence.total_ms": "persistence.total_ms";
422
+ "cancellation.count": "cancellation.count";
423
+ "conflict.count": "conflict.count";
424
+ "error.count": "error.count";
425
+ "usage.input_tokens": "usage.input_tokens";
426
+ "usage.output_tokens": "usage.output_tokens";
427
+ "usage.total_tokens": "usage.total_tokens";
428
+ "cost.usd": "cost.usd";
429
+ }>;
430
+ siteId: z.ZodString;
431
+ corpusId: z.ZodString;
432
+ requestId: z.ZodString;
433
+ value: z.ZodNumber;
434
+ unit: z.ZodEnum<{
435
+ ms: "ms";
436
+ bytes: "bytes";
437
+ count: "count";
438
+ tokens: "tokens";
439
+ usd: "usd";
440
+ }>;
441
+ outcome: z.ZodEnum<{
442
+ error: "error";
443
+ rejected: "rejected";
444
+ ok: "ok";
445
+ cancelled: "cancelled";
446
+ }>;
447
+ emittedAt: z.ZodString;
448
+ }, z.core.$strict>>;
449
+ type AskBackendRequest = z.infer<typeof AskBackendRequestSchema>;
450
+ type AskBackendMessage = z.infer<typeof AskBackendMessageSchema>;
451
+ type AskBackendSource = z.infer<typeof AskBackendSourceSchema>;
452
+ type AskBackendSiteConfig = z.infer<typeof AskBackendSiteConfigSchema>;
453
+ type AskBackendUsage = z.infer<typeof AskBackendUsageSchema>;
454
+ type AskBackendSessionRecord = z.infer<typeof AskBackendSessionRecordSchema>;
455
+ type AskBackendDiagnostic = z.infer<typeof AskBackendDiagnosticSchema>;
456
+ type AskBackendMetric = z.infer<typeof AskBackendMetricSchema>;
457
+
34
458
  declare const DETERMINISTIC_SITE_PROTOCOL: "agentskit.chat.site";
35
459
  declare const DETERMINISTIC_SITE_PROTOCOL_VERSION: 1;
36
460
  declare const DETERMINISTIC_KNOWLEDGE_PROTOCOL: "agentskit.chat.knowledge";
@@ -694,4 +1118,4 @@ type DecodeSessionSnapshotResult = {
694
1118
  };
695
1119
  declare const decodeSessionSnapshot: (input: unknown) => DecodeSessionSnapshotResult;
696
1120
 
697
- export { ANSWER_MAX_CITATIONS, ANSWER_MAX_SUGGESTIONS, ANSWER_PROTOCOL, ANSWER_PROTOCOL_VERSION, ASK_EVENT_MAX_BYTES, ASK_EVENT_MAX_RECORDS, ASK_SERVICE_PROTOCOL_VERSION, ASSISTANT_CONTENT_MAX_BYTES, ASSISTANT_CONTENT_MAX_RECORDS, ASSISTANT_CONTENT_PREFIX, ASSISTANT_CONTENT_PROTOCOL, ASSISTANT_CONTENT_PROTOCOL_VERSION, type AnswerCitation, AnswerCitationSchema, AnswerConfidenceSchema, type AnswerResponse, AnswerResponseSchema, AnswerSuggestionSchema, type AskEvent, type AskEventDecodeResult, AskEventSchema, type AskToolEvent, type AssistantComponentPart, AssistantComponentPartSchema, type AssistantContentDecodeCode, type AssistantContentEncoder, type AssistantContentPart, AssistantContentPartSchema, type AssistantTextPart, AssistantTextPartSchema, COMPONENT_PROTOCOL, COMPONENT_PROTOCOL_VERSION, type ComponentDecodeCode, type ComponentFallback, ComponentFallbackSchema, type ComponentInteractionEvent, ComponentInteractionEventSchema, ComponentKeySchema, type ComponentRenderFrame, ComponentRenderFrameSchema, type ComponentSelectionEvent, ComponentSelectionEventSchema, type CreateSnapshotEventOptions, DETERMINISTIC_ARTIFACT_MAX_BYTES, DETERMINISTIC_ARTIFACT_MAX_ENTRIES, DETERMINISTIC_KNOWLEDGE_PROTOCOL, DETERMINISTIC_KNOWLEDGE_PROTOCOL_VERSION, DETERMINISTIC_MATCH_MAX_VALUES, DETERMINISTIC_QUERY_MAX_CHARS, DETERMINISTIC_SITE_PROTOCOL, DETERMINISTIC_SITE_PROTOCOL_VERSION, type DecodeAssistantContentResult, type DecodeComponentFrameResult, type DecodeLocalKnowledgeArtifactOptions, type DecodeSessionSnapshotResult, type DecodeTurnEventResult, type DeterministicDecodeCode, type DeterministicDecodeResult, type DeterministicKnowledgeEntry, DeterministicKnowledgeEntrySchema, type DeterministicSiteConfig, DeterministicSiteConfigSchema, type DiagnosticTurnEvent, type LocalKnowledgeArtifact, type LocalKnowledgeArtifactHashInput, LocalKnowledgeArtifactSchema, type ProtocolDecodeCode, type ProtocolDecodeDiagnostic, SESSION_PROTOCOL, SESSION_PROTOCOL_VERSION, type SessionConfirmation, SessionConfirmationSchema, type SessionSnapshot, SessionSnapshotSchema, type SnapshotTurnEvent, type SubmitTurnEvent, TURN_PROTOCOL, TURN_PROTOCOL_VERSION, TokenUsageSchema, type TurnDiagnostic, TurnDiagnosticSchema, type TurnEvent, TurnEventSchema, type TurnLineage, type TurnSnapshotCursor, type VerifiedLocalKnowledgeArtifact, type VerifyLocalKnowledgeArtifactOptions, type WireMessage, canonicalizeLocalKnowledgeArtifact, computeLocalKnowledgeArtifactContentHash, createAssistantContentEncoder, createInteractionEvent, createSelectionEvent, createSnapshotEvent, createTurnSnapshotCursor, decodeAnswerResponse, decodeAskEvents, decodeAssistantContent, decodeComponentFrame, decodeDeterministicSiteConfig, decodeLocalKnowledgeArtifact, decodeSessionSnapshot, decodeTurnEvent, encodeTurnEvent, isAssistantContentCandidate, isComponentFrameCandidate, normalizeKnowledgeKey, snapshotMessages, verifyLocalKnowledgeArtifact, verifyLocalKnowledgeArtifactSync };
1121
+ export { ANSWER_MAX_CITATIONS, ANSWER_MAX_SUGGESTIONS, ANSWER_PROTOCOL, ANSWER_PROTOCOL_VERSION, ASK_BACKEND_MAX_MESSAGES, ASK_BACKEND_MAX_MESSAGE_CHARS, ASK_BACKEND_MAX_SOURCES, ASK_BACKEND_PROTOCOL, ASK_BACKEND_PROTOCOL_VERSION, ASK_EVENT_MAX_BYTES, ASK_EVENT_MAX_RECORDS, ASK_SERVICE_PROTOCOL_VERSION, ASSISTANT_CONTENT_MAX_BYTES, ASSISTANT_CONTENT_MAX_RECORDS, ASSISTANT_CONTENT_PREFIX, ASSISTANT_CONTENT_PROTOCOL, ASSISTANT_CONTENT_PROTOCOL_VERSION, type AnswerCitation, AnswerCitationSchema, AnswerConfidenceSchema, type AnswerResponse, AnswerResponseSchema, AnswerSuggestionSchema, type AskBackendDiagnostic, AskBackendDiagnosticSchema, type AskBackendMessage, AskBackendMessageSchema, type AskBackendMetric, AskBackendMetricNameSchema, AskBackendMetricSchema, type AskBackendRequest, AskBackendRequestSchema, type AskBackendSessionRecord, AskBackendSessionRecordSchema, type AskBackendSiteConfig, AskBackendSiteConfigSchema, type AskBackendSource, AskBackendSourceSchema, type AskBackendUsage, AskBackendUsageSchema, type AskEvent, type AskEventDecodeResult, AskEventSchema, type AskToolEvent, type AssistantComponentPart, AssistantComponentPartSchema, type AssistantContentDecodeCode, type AssistantContentEncoder, type AssistantContentPart, AssistantContentPartSchema, type AssistantTextPart, AssistantTextPartSchema, COMPONENT_PROTOCOL, COMPONENT_PROTOCOL_VERSION, type ComponentDecodeCode, type ComponentFallback, ComponentFallbackSchema, type ComponentInteractionEvent, ComponentInteractionEventSchema, ComponentKeySchema, type ComponentRenderFrame, ComponentRenderFrameSchema, type ComponentSelectionEvent, ComponentSelectionEventSchema, type CreateSnapshotEventOptions, DETERMINISTIC_ARTIFACT_MAX_BYTES, DETERMINISTIC_ARTIFACT_MAX_ENTRIES, DETERMINISTIC_KNOWLEDGE_PROTOCOL, DETERMINISTIC_KNOWLEDGE_PROTOCOL_VERSION, DETERMINISTIC_MATCH_MAX_VALUES, DETERMINISTIC_QUERY_MAX_CHARS, DETERMINISTIC_SITE_PROTOCOL, DETERMINISTIC_SITE_PROTOCOL_VERSION, type DecodeAssistantContentResult, type DecodeComponentFrameResult, type DecodeLocalKnowledgeArtifactOptions, type DecodeSessionSnapshotResult, type DecodeTurnEventResult, type DeterministicDecodeCode, type DeterministicDecodeResult, type DeterministicKnowledgeEntry, DeterministicKnowledgeEntrySchema, type DeterministicSiteConfig, DeterministicSiteConfigSchema, type DiagnosticTurnEvent, type LocalKnowledgeArtifact, type LocalKnowledgeArtifactHashInput, LocalKnowledgeArtifactSchema, type ProtocolDecodeCode, type ProtocolDecodeDiagnostic, SESSION_PROTOCOL, SESSION_PROTOCOL_VERSION, type SessionConfirmation, SessionConfirmationSchema, type SessionSnapshot, SessionSnapshotSchema, type SnapshotTurnEvent, type SubmitTurnEvent, TURN_PROTOCOL, TURN_PROTOCOL_VERSION, TokenUsageSchema, type TurnDiagnostic, TurnDiagnosticSchema, type TurnEvent, TurnEventSchema, type TurnLineage, type TurnSnapshotCursor, type VerifiedLocalKnowledgeArtifact, type VerifyLocalKnowledgeArtifactOptions, type WireMessage, canonicalizeLocalKnowledgeArtifact, computeLocalKnowledgeArtifactContentHash, createAssistantContentEncoder, createInteractionEvent, createSelectionEvent, createSnapshotEvent, createTurnSnapshotCursor, decodeAnswerResponse, decodeAskEvents, decodeAssistantContent, decodeComponentFrame, decodeDeterministicSiteConfig, decodeLocalKnowledgeArtifact, decodeSessionSnapshot, decodeTurnEvent, encodeTurnEvent, isAssistantContentCandidate, isComponentFrameCandidate, normalizeKnowledgeKey, snapshotMessages, verifyLocalKnowledgeArtifact, verifyLocalKnowledgeArtifactSync };