Repository navigation
Expand file tree
/
Copy pathclient.ts
More file actions
49 lines (49 loc) · 1.67 KB
/
Copy pathclient.ts
File metadata and controls
49 lines (49 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// The client AI boundary. App code imports AI requests and errors from here only.
export {
AIError,
AIAuthError,
AIRateLimitError,
AISubscriptionError,
AIModelRestrictionError,
AIProviderError,
AIResponseError,
TimeoutError,
AINetworkError,
AIServerError,
AIUnknownError,
isAIAuthError,
isAINetworkError,
isAIRateLimitError,
isAIProviderError,
isInvalidOutputError,
isTimeoutError,
isAISubscriptionError,
isAIModelRestrictionError,
classifyAIError,
mapAIError,
isBrowserNetworkFailure,
browserIsOffline,
privacySafeCauseType,
offlineAIMessage,
} from './errors';
export type { AIErrorClassification } from './errors';
export {
REQUEST_TIMEOUT_MS,
debateContextForRequest,
refreshDebatesIfMissing,
withOutputLanguage,
reportAIFailure,
} from './request';
export type { DiscoveredSource, ResultWithSources } from './sources';
export type { LiveGeneration, LivePhase } from './live';
export { CROSSFIRE_REQUEST_TIMEOUT_MS, crossfire, crossfireSignal } from './features/crossfire';
export { generateCase } from './features/generate';
export { attackCase } from './features/attack';
export { brainstorm } from './features/brainstorm';
export { factoids } from './features/factoids';
export { askChat, boundAskMessage, boundAskHistory, isAskMessageWithinBudget } from './features/ask';
export type { AskChatOptions } from './features/ask';
export { generateSparringTurn, judgeSparringSession } from './features/sparring';
export { checkSessionQuota, sessionQuotaError, sessionQuotaRemaining } from './features/session-quota';
export type { SessionQuota } from './features/session-quota';
export type { SparringTurnResult } from './features/sparring';