@degreesign/chat 1.7.0 → 1.7.2

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.
@@ -0,0 +1,80 @@
1
+ /** Author of a chat message */
2
+ declare enum LlmRole {
3
+ system = "system",
4
+ user = "user",
5
+ assistant = "assistant"
6
+ }
7
+ /** Assistant availability from engine */
8
+ declare enum ChatStatus {
9
+ online = 0,
10
+ away = 1,
11
+ offline = 2
12
+ }
13
+ /** On-device engine availability */
14
+ declare enum LlmStatus {
15
+ idle = 0,
16
+ downloading = 1,
17
+ ready = 2,
18
+ error = 3,
19
+ unsupported = 4
20
+ }
21
+ /** Engine running the model */
22
+ declare enum LlmBackend {
23
+ cpu = "cpu",
24
+ gpu = "gpu",
25
+ none = "none"
26
+ }
27
+ /** Download or load phase */
28
+ declare enum LlmPhase {
29
+ download = "download",
30
+ load = "load"
31
+ }
32
+ /** Operation an estimate covers */
33
+ declare enum EstimateOperation {
34
+ analyze = "analyze",
35
+ describe = "describe",
36
+ translate = "translate",
37
+ tags = "tags",
38
+ translateTags = "translateTags"
39
+ }
40
+ /** Stage of an enhanced description */
41
+ declare enum DescriptionEnhancedStage {
42
+ translate = "translate",
43
+ tags = "tags",
44
+ translateTags = "translateTags"
45
+ }
46
+ /** Fields of a preload request */
47
+ declare enum ChatPreloadField {
48
+ model = "model",
49
+ limits = "limits",
50
+ logging = "logging",
51
+ onStatus = "onStatus"
52
+ }
53
+ /** File system failure names */
54
+ declare enum StoreFault {
55
+ quota = "QuotaExceededError",
56
+ notAllowed = "NotAllowedError",
57
+ notSupported = "NotSupportedError",
58
+ invalidState = "InvalidStateError",
59
+ typeMismatch = "TypeMismatchError",
60
+ security = "SecurityError"
61
+ }
62
+ /** Catalog ids of on-device models */
63
+ declare enum ChatModelId {
64
+ qwen3_vl_2b = "qwen3-vl-2b",
65
+ qwen3_vl_2b_instruct = "qwen3-vl-2b-instruct",
66
+ qwen3_vl_2b_instruct_q3 = "qwen3-vl-2b-instruct-q3",
67
+ gemma4_e2b_limited = "gemma4-e2b-limited"
68
+ }
69
+ /** Built-in tools the package ships */
70
+ declare enum BuiltinTool {
71
+ websearch = "websearch",
72
+ calculate = "calculate",
73
+ currency = "currency"
74
+ }
75
+ /** Provider behind the websearch tool */
76
+ declare enum WebSearchProvider {
77
+ wikipedia = "wikipedia",
78
+ duckduckgo = "duckduckgo"
79
+ }
80
+ export { LlmRole, ChatStatus, LlmStatus, LlmBackend, LlmPhase, EstimateOperation, DescriptionEnhancedStage, ChatPreloadField, StoreFault, ChatModelId, BuiltinTool, WebSearchProvider, };