@isdk/ai-tool 0.0.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.
Files changed (87) hide show
  1. package/README.cn.md +261 -0
  2. package/README.md +3 -0
  3. package/dist/chunk-EZFPVSGF.mjs +22 -0
  4. package/dist/chunk-PKECBABP.mjs +5085 -0
  5. package/dist/funcs.d.mts +6 -0
  6. package/dist/funcs.d.ts +6 -0
  7. package/dist/funcs.js +5016 -0
  8. package/dist/funcs.mjs +37 -0
  9. package/dist/index-D4KjfAKl.d.mts +606 -0
  10. package/dist/index-D4KjfAKl.d.ts +606 -0
  11. package/dist/index.d.mts +1097 -0
  12. package/dist/index.d.ts +1097 -0
  13. package/dist/index.js +5239 -0
  14. package/dist/index.mjs +399 -0
  15. package/dist/test/util.d.mts +7 -0
  16. package/dist/test/util.d.ts +7 -0
  17. package/dist/test/util.js +98 -0
  18. package/dist/test/util.mjs +61 -0
  19. package/docs/.nojekyll +1 -0
  20. package/docs/README.md +5 -0
  21. package/docs/classes/AbortError.md +359 -0
  22. package/docs/classes/AlreadyExistsError.md +339 -0
  23. package/docs/classes/BaseError.md +346 -0
  24. package/docs/classes/ClientTools.md +2705 -0
  25. package/docs/classes/CommonError.md +368 -0
  26. package/docs/classes/ConfigFile.md +346 -0
  27. package/docs/classes/EventClient.md +3183 -0
  28. package/docs/classes/EventServer.md +3138 -0
  29. package/docs/classes/EventToolFunc.md +2498 -0
  30. package/docs/classes/FStringPromptTemplate.md +1236 -0
  31. package/docs/classes/FewShotPromptTemplate.md +1286 -0
  32. package/docs/classes/GolangPromptTemplate.md +1236 -0
  33. package/docs/classes/HFEnvironment.md +212 -0
  34. package/docs/classes/HFInterpreter.md +386 -0
  35. package/docs/classes/HFTemplate.md +79 -0
  36. package/docs/classes/HfPromptTemplate.md +1236 -0
  37. package/docs/classes/NotFoundError.md +339 -0
  38. package/docs/classes/NotImplementationError.md +339 -0
  39. package/docs/classes/PromptExampleSelector.md +207 -0
  40. package/docs/classes/PromptTemplate.md +1163 -0
  41. package/docs/classes/ReadableStreamError.md +359 -0
  42. package/docs/classes/ResClientTools.md +2859 -0
  43. package/docs/classes/ResServerTools.md +2783 -0
  44. package/docs/classes/SSEChannel.md +289 -0
  45. package/docs/classes/ServerTools.md +2633 -0
  46. package/docs/classes/ToolFunc.md +2124 -0
  47. package/docs/enums/ErrorCode.md +217 -0
  48. package/docs/enums/XXHashAlgorithm.md +30 -0
  49. package/docs/interfaces/AIChatAssistantMessageParam.md +84 -0
  50. package/docs/interfaces/AIChatContentPartImage.md +36 -0
  51. package/docs/interfaces/AIChatContentPartText.md +30 -0
  52. package/docs/interfaces/AIChatMessageParamBase.md +35 -0
  53. package/docs/interfaces/AIChatMessageToolCall.md +48 -0
  54. package/docs/interfaces/AIChatSystemMessageParam.md +51 -0
  55. package/docs/interfaces/AIChatToolMessageParam.md +62 -0
  56. package/docs/interfaces/AIChatUserMessageParam.md +95 -0
  57. package/docs/interfaces/AIResult.md +65 -0
  58. package/docs/interfaces/AIStreamCallbacksAndOptions.md +158 -0
  59. package/docs/interfaces/AIStreamParser.md +33 -0
  60. package/docs/interfaces/AIStreamParserOptions.md +23 -0
  61. package/docs/interfaces/BaseFunc.md +145 -0
  62. package/docs/interfaces/BaseFuncItem.md +99 -0
  63. package/docs/interfaces/ClientFuncItem.md +181 -0
  64. package/docs/interfaces/DotenvExpandOptions.md +51 -0
  65. package/docs/interfaces/DotenvExpandOutput.md +30 -0
  66. package/docs/interfaces/DotenvParseInput.md +7 -0
  67. package/docs/interfaces/DotenvParseOutput.md +7 -0
  68. package/docs/interfaces/DotenvPopulateInput.md +7 -0
  69. package/docs/interfaces/EventClientFuncParams.md +66 -0
  70. package/docs/interfaces/EventServerFuncParams.md +79 -0
  71. package/docs/interfaces/FewShotPromptTemplateOptions.md +179 -0
  72. package/docs/interfaces/FuncItem.md +130 -0
  73. package/docs/interfaces/FuncParam.md +67 -0
  74. package/docs/interfaces/FuncParams.md +7 -0
  75. package/docs/interfaces/Funcs.md +7 -0
  76. package/docs/interfaces/IOptions.md +30 -0
  77. package/docs/interfaces/JsonFilter.md +7 -0
  78. package/docs/interfaces/PromptExampleSelectorOptions.md +39 -0
  79. package/docs/interfaces/PromptTemplateOptions.md +84 -0
  80. package/docs/interfaces/RemoteFuncItem.md +167 -0
  81. package/docs/interfaces/ResClientFuncParams.md +34 -0
  82. package/docs/interfaces/ResServerFuncParams.md +79 -0
  83. package/docs/interfaces/SanitizeFilenameOptions.md +30 -0
  84. package/docs/interfaces/ServerFuncItem.md +192 -0
  85. package/docs/interfaces/ServerFuncParams.md +44 -0
  86. package/docs/modules.md +2707 -0
  87. package/package.json +112 -0
@@ -0,0 +1,217 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / ErrorCode
2
+
3
+ # Enumeration: ErrorCode
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [Aborted](ErrorCode.md#aborted)
10
+ - [BadGateway](ErrorCode.md#badgateway)
11
+ - [BadRequest](ErrorCode.md#badrequest)
12
+ - [Conflict](ErrorCode.md#conflict)
13
+ - [Corruption](ErrorCode.md#corruption)
14
+ - [Forbidden](ErrorCode.md#forbidden)
15
+ - [GatewayTimeout](ErrorCode.md#gatewaytimeout)
16
+ - [InternalError](ErrorCode.md#internalerror)
17
+ - [InvalidArgument](ErrorCode.md#invalidargument)
18
+ - [MethodNotAllowed](ErrorCode.md#methodnotallowed)
19
+ - [NotAcceptable](ErrorCode.md#notacceptable)
20
+ - [NotFound](ErrorCode.md#notfound)
21
+ - [NotImplemented](ErrorCode.md#notimplemented)
22
+ - [NotSupported](ErrorCode.md#notsupported)
23
+ - [OK](ErrorCode.md#ok)
24
+ - [PaymentRequired](ErrorCode.md#paymentrequired)
25
+ - [RequestTimeout](ErrorCode.md#requesttimeout)
26
+ - [ServiceUnavailable](ErrorCode.md#serviceunavailable)
27
+ - [Unauthorized](ErrorCode.md#unauthorized)
28
+
29
+ ## Enumeration Members
30
+
31
+ ### Aborted
32
+
33
+ • **Aborted** = ``499``
34
+
35
+ #### Defined in
36
+
37
+ [packages/ai-tool/src/utils/base-error.ts:18](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L18)
38
+
39
+ ___
40
+
41
+ ### BadGateway
42
+
43
+ • **BadGateway** = ``502``
44
+
45
+ #### Defined in
46
+
47
+ [packages/ai-tool/src/utils/base-error.ts:22](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L22)
48
+
49
+ ___
50
+
51
+ ### BadRequest
52
+
53
+ • **BadRequest** = ``400``
54
+
55
+ #### Defined in
56
+
57
+ [packages/ai-tool/src/utils/base-error.ts:7](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L7)
58
+
59
+ ___
60
+
61
+ ### Conflict
62
+
63
+ • **Conflict** = ``409``
64
+
65
+ #### Defined in
66
+
67
+ [packages/ai-tool/src/utils/base-error.ts:16](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L16)
68
+
69
+ ___
70
+
71
+ ### Corruption
72
+
73
+ • **Corruption** = ``409``
74
+
75
+ #### Defined in
76
+
77
+ [packages/ai-tool/src/utils/base-error.ts:17](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L17)
78
+
79
+ ___
80
+
81
+ ### Forbidden
82
+
83
+ • **Forbidden** = ``403``
84
+
85
+ #### Defined in
86
+
87
+ [packages/ai-tool/src/utils/base-error.ts:11](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L11)
88
+
89
+ ___
90
+
91
+ ### GatewayTimeout
92
+
93
+ • **GatewayTimeout** = ``504``
94
+
95
+ #### Defined in
96
+
97
+ [packages/ai-tool/src/utils/base-error.ts:24](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L24)
98
+
99
+ ___
100
+
101
+ ### InternalError
102
+
103
+ • **InternalError** = ``500``
104
+
105
+ #### Defined in
106
+
107
+ [packages/ai-tool/src/utils/base-error.ts:19](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L19)
108
+
109
+ ___
110
+
111
+ ### InvalidArgument
112
+
113
+ • **InvalidArgument** = ``400``
114
+
115
+ #### Defined in
116
+
117
+ [packages/ai-tool/src/utils/base-error.ts:8](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L8)
118
+
119
+ ___
120
+
121
+ ### MethodNotAllowed
122
+
123
+ • **MethodNotAllowed** = ``405``
124
+
125
+ #### Defined in
126
+
127
+ [packages/ai-tool/src/utils/base-error.ts:13](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L13)
128
+
129
+ ___
130
+
131
+ ### NotAcceptable
132
+
133
+ • **NotAcceptable** = ``406``
134
+
135
+ #### Defined in
136
+
137
+ [packages/ai-tool/src/utils/base-error.ts:14](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L14)
138
+
139
+ ___
140
+
141
+ ### NotFound
142
+
143
+ • **NotFound** = ``404``
144
+
145
+ #### Defined in
146
+
147
+ [packages/ai-tool/src/utils/base-error.ts:12](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L12)
148
+
149
+ ___
150
+
151
+ ### NotImplemented
152
+
153
+ • **NotImplemented** = ``501``
154
+
155
+ #### Defined in
156
+
157
+ [packages/ai-tool/src/utils/base-error.ts:20](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L20)
158
+
159
+ ___
160
+
161
+ ### NotSupported
162
+
163
+ • **NotSupported** = ``501``
164
+
165
+ #### Defined in
166
+
167
+ [packages/ai-tool/src/utils/base-error.ts:21](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L21)
168
+
169
+ ___
170
+
171
+ ### OK
172
+
173
+ • **OK** = ``200``
174
+
175
+ #### Defined in
176
+
177
+ [packages/ai-tool/src/utils/base-error.ts:6](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L6)
178
+
179
+ ___
180
+
181
+ ### PaymentRequired
182
+
183
+ • **PaymentRequired** = ``402``
184
+
185
+ #### Defined in
186
+
187
+ [packages/ai-tool/src/utils/base-error.ts:10](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L10)
188
+
189
+ ___
190
+
191
+ ### RequestTimeout
192
+
193
+ • **RequestTimeout** = ``408``
194
+
195
+ #### Defined in
196
+
197
+ [packages/ai-tool/src/utils/base-error.ts:15](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L15)
198
+
199
+ ___
200
+
201
+ ### ServiceUnavailable
202
+
203
+ • **ServiceUnavailable** = ``503``
204
+
205
+ #### Defined in
206
+
207
+ [packages/ai-tool/src/utils/base-error.ts:23](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L23)
208
+
209
+ ___
210
+
211
+ ### Unauthorized
212
+
213
+ • **Unauthorized** = ``401``
214
+
215
+ #### Defined in
216
+
217
+ [packages/ai-tool/src/utils/base-error.ts:9](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/base-error.ts#L9)
@@ -0,0 +1,30 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / XXHashAlgorithm
2
+
3
+ # Enumeration: XXHashAlgorithm
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [xxhash32](XXHashAlgorithm.md#xxhash32)
10
+ - [xxhash64](XXHashAlgorithm.md#xxhash64)
11
+
12
+ ## Enumeration Members
13
+
14
+ ### xxhash32
15
+
16
+ • **xxhash32** = ``112``
17
+
18
+ #### Defined in
19
+
20
+ [packages/ai-tool/src/utils/hash/xxhash.ts:27](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/hash/xxhash.ts#L27)
21
+
22
+ ___
23
+
24
+ ### xxhash64
25
+
26
+ • **xxhash64** = ``111``
27
+
28
+ #### Defined in
29
+
30
+ [packages/ai-tool/src/utils/hash/xxhash.ts:26](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/hash/xxhash.ts#L26)
@@ -0,0 +1,84 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatAssistantMessageParam
2
+
3
+ # Interface: AIChatAssistantMessageParam
4
+
5
+ ## Hierarchy
6
+
7
+ - [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
8
+
9
+ ↳ **`AIChatAssistantMessageParam`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Properties
14
+
15
+ - [content](AIChatAssistantMessageParam.md#content)
16
+ - [createdAt](AIChatAssistantMessageParam.md#createdat)
17
+ - [role](AIChatAssistantMessageParam.md#role)
18
+ - [templateFormat](AIChatAssistantMessageParam.md#templateformat)
19
+ - [tool\_calls](AIChatAssistantMessageParam.md#tool_calls)
20
+ - [updatedAt](AIChatAssistantMessageParam.md#updatedat)
21
+
22
+ ## Properties
23
+
24
+ ### content
25
+
26
+ • `Optional` **content**: ``null`` \| `string`
27
+
28
+ #### Defined in
29
+
30
+ [packages/ai-tool/src/utils/chat.ts:88](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L88)
31
+
32
+ ___
33
+
34
+ ### createdAt
35
+
36
+ • `Optional` **createdAt**: `string` \| `Date`
37
+
38
+ #### Defined in
39
+
40
+ [packages/ai-tool/src/utils/chat.ts:91](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L91)
41
+
42
+ ___
43
+
44
+ ### role
45
+
46
+ • **role**: ``"assistant"``
47
+
48
+ #### Overrides
49
+
50
+ [AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
51
+
52
+ #### Defined in
53
+
54
+ [packages/ai-tool/src/utils/chat.ts:87](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L87)
55
+
56
+ ___
57
+
58
+ ### templateFormat
59
+
60
+ • `Optional` **templateFormat**: `string`
61
+
62
+ #### Defined in
63
+
64
+ [packages/ai-tool/src/utils/chat.ts:93](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L93)
65
+
66
+ ___
67
+
68
+ ### tool\_calls
69
+
70
+ • `Optional` **tool\_calls**: [`AIChatMessageToolCall`](AIChatMessageToolCall.md)[]
71
+
72
+ #### Defined in
73
+
74
+ [packages/ai-tool/src/utils/chat.ts:89](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L89)
75
+
76
+ ___
77
+
78
+ ### updatedAt
79
+
80
+ • `Optional` **updatedAt**: `string` \| `Date`
81
+
82
+ #### Defined in
83
+
84
+ [packages/ai-tool/src/utils/chat.ts:92](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L92)
@@ -0,0 +1,36 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatContentPartImage
2
+
3
+ # Interface: AIChatContentPartImage
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [image\_url](AIChatContentPartImage.md#image_url)
10
+ - [type](AIChatContentPartImage.md#type)
11
+
12
+ ## Properties
13
+
14
+ ### image\_url
15
+
16
+ • **image\_url**: `Object`
17
+
18
+ #### Type declaration
19
+
20
+ | Name | Type |
21
+ | :------ | :------ |
22
+ | `url` | `string` |
23
+
24
+ #### Defined in
25
+
26
+ [packages/ai-tool/src/utils/chat.ts:76](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L76)
27
+
28
+ ___
29
+
30
+ ### type
31
+
32
+ • **type**: ``"image_url"``
33
+
34
+ #### Defined in
35
+
36
+ [packages/ai-tool/src/utils/chat.ts:75](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L75)
@@ -0,0 +1,30 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatContentPartText
2
+
3
+ # Interface: AIChatContentPartText
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [text](AIChatContentPartText.md#text)
10
+ - [type](AIChatContentPartText.md#type)
11
+
12
+ ## Properties
13
+
14
+ ### text
15
+
16
+ • **text**: `string`
17
+
18
+ #### Defined in
19
+
20
+ [packages/ai-tool/src/utils/chat.ts:83](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L83)
21
+
22
+ ___
23
+
24
+ ### type
25
+
26
+ • **type**: ``"text"``
27
+
28
+ #### Defined in
29
+
30
+ [packages/ai-tool/src/utils/chat.ts:82](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L82)
@@ -0,0 +1,35 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatMessageParamBase
2
+
3
+ # Interface: AIChatMessageParamBase
4
+
5
+ ## Hierarchy
6
+
7
+ - **`AIChatMessageParamBase`**
8
+
9
+ ↳ [`AIChatSystemMessageParam`](AIChatSystemMessageParam.md)
10
+
11
+ ↳ [`AIChatUserMessageParam`](AIChatUserMessageParam.md)
12
+
13
+ ↳ [`AIChatAssistantMessageParam`](AIChatAssistantMessageParam.md)
14
+
15
+ ↳ [`AIChatToolMessageParam`](AIChatToolMessageParam.md)
16
+
17
+ ## Indexable
18
+
19
+ ▪ [name: `string`]: `any`
20
+
21
+ ## Table of contents
22
+
23
+ ### Properties
24
+
25
+ - [role](AIChatMessageParamBase.md#role)
26
+
27
+ ## Properties
28
+
29
+ ### role
30
+
31
+ • **role**: `string`
32
+
33
+ #### Defined in
34
+
35
+ [packages/ai-tool/src/utils/chat.ts:47](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L47)
@@ -0,0 +1,48 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatMessageToolCall
2
+
3
+ # Interface: AIChatMessageToolCall
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [function](AIChatMessageToolCall.md#function)
10
+ - [id](AIChatMessageToolCall.md#id)
11
+ - [type](AIChatMessageToolCall.md#type)
12
+
13
+ ## Properties
14
+
15
+ ### function
16
+
17
+ • **function**: `Object`
18
+
19
+ #### Type declaration
20
+
21
+ | Name | Type |
22
+ | :------ | :------ |
23
+ | `arguments` | `string` |
24
+ | `name` | `string` |
25
+
26
+ #### Defined in
27
+
28
+ [packages/ai-tool/src/utils/chat.ts:99](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L99)
29
+
30
+ ___
31
+
32
+ ### id
33
+
34
+ • **id**: `string`
35
+
36
+ #### Defined in
37
+
38
+ [packages/ai-tool/src/utils/chat.ts:98](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L98)
39
+
40
+ ___
41
+
42
+ ### type
43
+
44
+ • **type**: ``"function"``
45
+
46
+ #### Defined in
47
+
48
+ [packages/ai-tool/src/utils/chat.ts:97](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L97)
@@ -0,0 +1,51 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatSystemMessageParam
2
+
3
+ # Interface: AIChatSystemMessageParam
4
+
5
+ ## Hierarchy
6
+
7
+ - [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
8
+
9
+ ↳ **`AIChatSystemMessageParam`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Properties
14
+
15
+ - [content](AIChatSystemMessageParam.md#content)
16
+ - [role](AIChatSystemMessageParam.md#role)
17
+ - [templateFormat](AIChatSystemMessageParam.md#templateformat)
18
+
19
+ ## Properties
20
+
21
+ ### content
22
+
23
+ • **content**: `string`
24
+
25
+ #### Defined in
26
+
27
+ [packages/ai-tool/src/utils/chat.ts:53](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L53)
28
+
29
+ ___
30
+
31
+ ### role
32
+
33
+ • **role**: ``"system"``
34
+
35
+ #### Overrides
36
+
37
+ [AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
38
+
39
+ #### Defined in
40
+
41
+ [packages/ai-tool/src/utils/chat.ts:52](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L52)
42
+
43
+ ___
44
+
45
+ ### templateFormat
46
+
47
+ • `Optional` **templateFormat**: `string`
48
+
49
+ #### Defined in
50
+
51
+ [packages/ai-tool/src/utils/chat.ts:54](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L54)
@@ -0,0 +1,62 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatToolMessageParam
2
+
3
+ # Interface: AIChatToolMessageParam
4
+
5
+ ## Hierarchy
6
+
7
+ - [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
8
+
9
+ ↳ **`AIChatToolMessageParam`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Properties
14
+
15
+ - [content](AIChatToolMessageParam.md#content)
16
+ - [role](AIChatToolMessageParam.md#role)
17
+ - [templateFormat](AIChatToolMessageParam.md#templateformat)
18
+ - [tool\_call\_id](AIChatToolMessageParam.md#tool_call_id)
19
+
20
+ ## Properties
21
+
22
+ ### content
23
+
24
+ • **content**: `string`
25
+
26
+ #### Defined in
27
+
28
+ [packages/ai-tool/src/utils/chat.ts:107](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L107)
29
+
30
+ ___
31
+
32
+ ### role
33
+
34
+ • **role**: ``"tool"``
35
+
36
+ #### Overrides
37
+
38
+ [AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
39
+
40
+ #### Defined in
41
+
42
+ [packages/ai-tool/src/utils/chat.ts:106](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L106)
43
+
44
+ ___
45
+
46
+ ### templateFormat
47
+
48
+ • `Optional` **templateFormat**: `string`
49
+
50
+ #### Defined in
51
+
52
+ [packages/ai-tool/src/utils/chat.ts:109](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L109)
53
+
54
+ ___
55
+
56
+ ### tool\_call\_id
57
+
58
+ • **tool\_call\_id**: `string`
59
+
60
+ #### Defined in
61
+
62
+ [packages/ai-tool/src/utils/chat.ts:108](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L108)
@@ -0,0 +1,95 @@
1
+ [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / AIChatUserMessageParam
2
+
3
+ # Interface: AIChatUserMessageParam
4
+
5
+ ## Hierarchy
6
+
7
+ - [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
8
+
9
+ ↳ **`AIChatUserMessageParam`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Properties
14
+
15
+ - [charId](AIChatUserMessageParam.md#charid)
16
+ - [content](AIChatUserMessageParam.md#content)
17
+ - [createdAt](AIChatUserMessageParam.md#createdat)
18
+ - [from](AIChatUserMessageParam.md#from)
19
+ - [role](AIChatUserMessageParam.md#role)
20
+ - [templateFormat](AIChatUserMessageParam.md#templateformat)
21
+ - [updatedAt](AIChatUserMessageParam.md#updatedat)
22
+
23
+ ## Properties
24
+
25
+ ### charId
26
+
27
+ • `Optional` **charId**: `string`
28
+
29
+ #### Defined in
30
+
31
+ [packages/ai-tool/src/utils/chat.ts:64](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L64)
32
+
33
+ ___
34
+
35
+ ### content
36
+
37
+ • **content**: `string` \| [`AIChatContentPart`](../modules.md#aichatcontentpart)[]
38
+
39
+ #### Defined in
40
+
41
+ [packages/ai-tool/src/utils/chat.ts:59](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L59)
42
+
43
+ ___
44
+
45
+ ### createdAt
46
+
47
+ • `Optional` **createdAt**: `string` \| `Date`
48
+
49
+ #### Defined in
50
+
51
+ [packages/ai-tool/src/utils/chat.ts:61](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L61)
52
+
53
+ ___
54
+
55
+ ### from
56
+
57
+ • `Optional` **from**: `string`
58
+
59
+ #### Defined in
60
+
61
+ [packages/ai-tool/src/utils/chat.ts:66](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L66)
62
+
63
+ ___
64
+
65
+ ### role
66
+
67
+ • **role**: ``"user"``
68
+
69
+ #### Overrides
70
+
71
+ [AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
72
+
73
+ #### Defined in
74
+
75
+ [packages/ai-tool/src/utils/chat.ts:58](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L58)
76
+
77
+ ___
78
+
79
+ ### templateFormat
80
+
81
+ • `Optional` **templateFormat**: `string`
82
+
83
+ #### Defined in
84
+
85
+ [packages/ai-tool/src/utils/chat.ts:67](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L67)
86
+
87
+ ___
88
+
89
+ ### updatedAt
90
+
91
+ • `Optional` **updatedAt**: `string` \| `Date`
92
+
93
+ #### Defined in
94
+
95
+ [packages/ai-tool/src/utils/chat.ts:62](https://github.com/isdk/ai-tool.js/blob/e7fb80e8b32da0eb475b223017e88d973ef7af19/src/utils/chat.ts#L62)