syllable-sdk 0.1.0-alpha.5 → 0.1.0-alpha.6

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 (209) hide show
  1. package/README.md +18 -2
  2. package/docs/sdks/prompts/README.md +78 -0
  3. package/docs/sdks/services/README.md +245 -0
  4. package/docs/sdks/syllablesdk/README.md +3 -2
  5. package/docs/sdks/tools/README.md +163 -1
  6. package/docs/sdks/transcript/README.md +2 -0
  7. package/funcs/promptsPromptsHistory.d.ts +17 -0
  8. package/funcs/promptsPromptsHistory.d.ts.map +1 -0
  9. package/funcs/promptsPromptsHistory.js +106 -0
  10. package/funcs/promptsPromptsHistory.js.map +1 -0
  11. package/funcs/servicesCreate.d.ts +13 -0
  12. package/funcs/servicesCreate.d.ts.map +1 -0
  13. package/funcs/servicesCreate.js +96 -0
  14. package/funcs/servicesCreate.js.map +1 -0
  15. package/funcs/servicesList.d.ts +17 -0
  16. package/funcs/servicesList.d.ts.map +1 -0
  17. package/funcs/servicesList.js +111 -0
  18. package/funcs/servicesList.js.map +1 -0
  19. package/funcs/servicesUpdate.d.ts +13 -0
  20. package/funcs/servicesUpdate.d.ts.map +1 -0
  21. package/funcs/servicesUpdate.js +96 -0
  22. package/funcs/servicesUpdate.js.map +1 -0
  23. package/funcs/toolsCreate.d.ts +16 -0
  24. package/funcs/toolsCreate.d.ts.map +1 -0
  25. package/funcs/toolsCreate.js +99 -0
  26. package/funcs/toolsCreate.js.map +1 -0
  27. package/funcs/toolsList.d.ts +1 -1
  28. package/funcs/toolsList.js +1 -1
  29. package/funcs/toolsUpdate.d.ts +16 -0
  30. package/funcs/toolsUpdate.d.ts.map +1 -0
  31. package/funcs/toolsUpdate.js +99 -0
  32. package/funcs/toolsUpdate.js.map +1 -0
  33. package/lib/config.d.ts +3 -3
  34. package/lib/config.js +3 -3
  35. package/models/components/channel.d.ts +3 -0
  36. package/models/components/channel.d.ts.map +1 -1
  37. package/models/components/channel.js.map +1 -1
  38. package/models/components/index.d.ts +8 -2
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +8 -2
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/listresponseservice.d.ts +38 -0
  43. package/models/components/listresponseservice.d.ts.map +1 -0
  44. package/models/components/listresponseservice.js +81 -0
  45. package/models/components/listresponseservice.js.map +1 -0
  46. package/models/components/llmconfig.d.ts +34 -3
  47. package/models/components/llmconfig.d.ts.map +1 -1
  48. package/models/components/llmconfig.js +26 -4
  49. package/models/components/llmconfig.js.map +1 -1
  50. package/models/components/prompt.d.ts +13 -0
  51. package/models/components/prompt.d.ts.map +1 -1
  52. package/models/components/prompt.js +8 -0
  53. package/models/components/prompt.js.map +1 -1
  54. package/models/components/promptcreate.d.ts +3 -0
  55. package/models/components/promptcreate.d.ts.map +1 -1
  56. package/models/components/promptcreate.js.map +1 -1
  57. package/models/components/prompthistory.d.ts +41 -0
  58. package/models/components/prompthistory.d.ts.map +1 -0
  59. package/models/components/prompthistory.js +88 -0
  60. package/models/components/prompthistory.js.map +1 -0
  61. package/models/components/promptproperties.d.ts +3 -0
  62. package/models/components/promptproperties.d.ts.map +1 -1
  63. package/models/components/promptproperties.js +1 -0
  64. package/models/components/promptproperties.js.map +1 -1
  65. package/models/components/service.d.ts +47 -0
  66. package/models/components/service.d.ts.map +1 -0
  67. package/models/components/{provider.js → service.js} +30 -19
  68. package/models/components/service.js.map +1 -0
  69. package/models/components/servicecreate.d.ts +37 -0
  70. package/models/components/servicecreate.d.ts.map +1 -0
  71. package/models/components/servicecreate.js +61 -0
  72. package/models/components/servicecreate.js.map +1 -0
  73. package/models/components/serviceproperties.d.ts +28 -0
  74. package/models/components/serviceproperties.d.ts.map +1 -0
  75. package/models/components/{orderbydirection.js → serviceproperties.js} +14 -14
  76. package/models/components/serviceproperties.js.map +1 -0
  77. package/models/components/serviceupdate.d.ts +42 -0
  78. package/models/components/serviceupdate.d.ts.map +1 -0
  79. package/models/components/serviceupdate.js +63 -0
  80. package/models/components/serviceupdate.js.map +1 -0
  81. package/models/components/toolcreate.d.ts +66 -0
  82. package/models/components/toolcreate.d.ts.map +1 -0
  83. package/models/components/toolcreate.js +95 -0
  84. package/models/components/toolcreate.js.map +1 -0
  85. package/models/components/toolupdate.d.ts +71 -0
  86. package/models/components/toolupdate.d.ts.map +1 -0
  87. package/models/components/toolupdate.js +97 -0
  88. package/models/components/toolupdate.js.map +1 -0
  89. package/models/operations/agentlist.d.ts +77 -2
  90. package/models/operations/agentlist.d.ts.map +1 -1
  91. package/models/operations/agentlist.js +52 -5
  92. package/models/operations/agentlist.js.map +1 -1
  93. package/models/operations/availabletargets.d.ts +56 -2
  94. package/models/operations/availabletargets.d.ts.map +1 -1
  95. package/models/operations/availabletargets.js +47 -5
  96. package/models/operations/availabletargets.js.map +1 -1
  97. package/models/operations/channelslist.d.ts +59 -2
  98. package/models/operations/channelslist.d.ts.map +1 -1
  99. package/models/operations/channelslist.js +45 -5
  100. package/models/operations/channelslist.js.map +1 -1
  101. package/models/operations/channeltargetslist.d.ts +71 -2
  102. package/models/operations/channeltargetslist.d.ts.map +1 -1
  103. package/models/operations/channeltargetslist.js +52 -5
  104. package/models/operations/channeltargetslist.js.map +1 -1
  105. package/models/operations/conversationslist.d.ts +77 -2
  106. package/models/operations/conversationslist.d.ts.map +1 -1
  107. package/models/operations/conversationslist.js +54 -5
  108. package/models/operations/conversationslist.js.map +1 -1
  109. package/models/operations/custommessageslist.d.ts +56 -2
  110. package/models/operations/custommessageslist.d.ts.map +1 -1
  111. package/models/operations/custommessageslist.js +47 -5
  112. package/models/operations/custommessageslist.js.map +1 -1
  113. package/models/operations/eventslist.d.ts +77 -2
  114. package/models/operations/eventslist.d.ts.map +1 -1
  115. package/models/operations/eventslist.js +53 -5
  116. package/models/operations/eventslist.js.map +1 -1
  117. package/models/operations/index.d.ts +2 -0
  118. package/models/operations/index.d.ts.map +1 -1
  119. package/models/operations/index.js +2 -0
  120. package/models/operations/index.js.map +1 -1
  121. package/models/operations/promptshistory.d.ts +29 -0
  122. package/models/operations/promptshistory.d.ts.map +1 -0
  123. package/models/operations/promptshistory.js +68 -0
  124. package/models/operations/promptshistory.js.map +1 -0
  125. package/models/operations/promptslist.d.ts +65 -2
  126. package/models/operations/promptslist.d.ts.map +1 -1
  127. package/models/operations/promptslist.js +49 -5
  128. package/models/operations/promptslist.js.map +1 -1
  129. package/models/operations/servicelist.d.ts +97 -0
  130. package/models/operations/servicelist.d.ts.map +1 -0
  131. package/models/operations/servicelist.js +137 -0
  132. package/models/operations/servicelist.js.map +1 -0
  133. package/models/operations/sessionlabelslist.d.ts +68 -2
  134. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  135. package/models/operations/sessionlabelslist.js +51 -5
  136. package/models/operations/sessionlabelslist.js.map +1 -1
  137. package/models/operations/sessionslist.d.ts +95 -2
  138. package/models/operations/sessionslist.d.ts.map +1 -1
  139. package/models/operations/sessionslist.js +59 -5
  140. package/models/operations/sessionslist.js.map +1 -1
  141. package/models/operations/toollist.d.ts +62 -2
  142. package/models/operations/toollist.d.ts.map +1 -1
  143. package/models/operations/toollist.js +48 -5
  144. package/models/operations/toollist.js.map +1 -1
  145. package/package.json +1 -1
  146. package/sdk/prompts.d.ts +7 -0
  147. package/sdk/prompts.d.ts.map +1 -1
  148. package/sdk/prompts.js +10 -0
  149. package/sdk/prompts.js.map +1 -1
  150. package/sdk/sdk.d.ts +3 -0
  151. package/sdk/sdk.d.ts.map +1 -1
  152. package/sdk/sdk.js +5 -0
  153. package/sdk/sdk.js.map +1 -1
  154. package/sdk/services.d.ts +21 -0
  155. package/sdk/services.d.ts.map +1 -0
  156. package/sdk/services.js +36 -0
  157. package/sdk/services.js.map +1 -0
  158. package/sdk/tools.d.ts +15 -1
  159. package/sdk/tools.d.ts.map +1 -1
  160. package/sdk/tools.js +21 -1
  161. package/sdk/tools.js.map +1 -1
  162. package/src/funcs/promptsPromptsHistory.ts +139 -0
  163. package/src/funcs/servicesCreate.ts +128 -0
  164. package/src/funcs/servicesList.ts +144 -0
  165. package/src/funcs/servicesUpdate.ts +128 -0
  166. package/src/funcs/toolsCreate.ts +131 -0
  167. package/src/funcs/toolsList.ts +1 -1
  168. package/src/funcs/toolsUpdate.ts +131 -0
  169. package/src/lib/config.ts +3 -3
  170. package/src/models/components/channel.ts +3 -0
  171. package/src/models/components/index.ts +8 -2
  172. package/src/models/components/listresponseservice.ts +101 -0
  173. package/src/models/components/llmconfig.ts +36 -9
  174. package/src/models/components/prompt.ts +21 -0
  175. package/src/models/components/promptcreate.ts +3 -0
  176. package/src/models/components/prompthistory.ts +103 -0
  177. package/src/models/components/promptproperties.ts +1 -0
  178. package/src/models/components/service.ts +83 -0
  179. package/src/models/components/servicecreate.ts +72 -0
  180. package/src/models/components/serviceproperties.ts +33 -0
  181. package/src/models/components/serviceupdate.ts +79 -0
  182. package/src/models/components/toolcreate.ts +141 -0
  183. package/src/models/components/toolupdate.ts +148 -0
  184. package/src/models/operations/agentlist.ts +67 -6
  185. package/src/models/operations/availabletargets.ts +71 -6
  186. package/src/models/operations/channelslist.ts +65 -6
  187. package/src/models/operations/channeltargetslist.ts +77 -6
  188. package/src/models/operations/conversationslist.ts +78 -6
  189. package/src/models/operations/custommessageslist.ts +72 -6
  190. package/src/models/operations/eventslist.ts +78 -6
  191. package/src/models/operations/index.ts +2 -0
  192. package/src/models/operations/promptshistory.ts +75 -0
  193. package/src/models/operations/promptslist.ts +74 -6
  194. package/src/models/operations/servicelist.ts +184 -0
  195. package/src/models/operations/sessionlabelslist.ts +75 -6
  196. package/src/models/operations/sessionslist.ts +84 -6
  197. package/src/models/operations/toollist.ts +71 -6
  198. package/src/sdk/prompts.ts +18 -0
  199. package/src/sdk/sdk.ts +6 -0
  200. package/src/sdk/services.ts +58 -0
  201. package/src/sdk/tools.ts +37 -1
  202. package/models/components/orderbydirection.d.ts +0 -28
  203. package/models/components/orderbydirection.d.ts.map +0 -1
  204. package/models/components/orderbydirection.js.map +0 -1
  205. package/models/components/provider.d.ts +0 -34
  206. package/models/components/provider.d.ts.map +0 -1
  207. package/models/components/provider.js.map +0 -1
  208. package/src/models/components/orderbydirection.ts +0 -33
  209. package/src/models/components/provider.ts +0 -37
package/README.md CHANGED
@@ -19,14 +19,15 @@ Syllble SDK gives you the power of awesome AI agentry. 🚀
19
19
 
20
20
  ## Overview
21
21
 
22
- The Syllble SDK provides a comprehensive set of tools and APIs to integrate powerful AI capabilities into your applications. Whether you're building chatbots, virtual assistants, or any other AI-driven solutions, Syllble SDK has got you covered.
22
+ The Syllble SDK provides a comprehensive set of tools and APIs to integrate powerful AI
23
+ capabilities into your communication applications. Whether you're building chatbots, virtual
24
+ assistants, or any other AI-driven solutions, Syllble SDK has got you covered.
23
25
 
24
26
  ## Features
25
27
 
26
28
  - **Natural Language Processing (NLP)**: Understand and generate human language with ease.
27
29
  - **Machine Learning Models**: Leverage pre-trained models or train your own custom models.
28
30
  - **Speech Recognition**: Convert speech to text and vice versa.
29
- - **Image Recognition**: Identify objects, faces, and scenes in images.
30
31
  - **Data Analytics**: Analyze and visualize data to gain insights.
31
32
  - **Integration**: Seamlessly integrate with other services and platforms.
32
33
  <!-- End Summary [summary] -->
@@ -175,6 +176,13 @@ run();
175
176
  * [update](docs/sdks/prompts/README.md#update) - Update Prompt
176
177
  * [getById](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
177
178
  * [delete](docs/sdks/prompts/README.md#delete) - Delete Prompt
179
+ * [promptsHistory](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
180
+
181
+ ### [services](docs/sdks/services/README.md)
182
+
183
+ * [list](docs/sdks/services/README.md#list) - Service List
184
+ * [create](docs/sdks/services/README.md#create) - Create Service
185
+ * [update](docs/sdks/services/README.md#update) - Update Service
178
186
 
179
187
  ### [sessionLabels](docs/sdks/sessionlabels/README.md)
180
188
 
@@ -197,6 +205,8 @@ run();
197
205
  ### [tools](docs/sdks/tools/README.md)
198
206
 
199
207
  * [list](docs/sdks/tools/README.md#list) - Tool List
208
+ * [create](docs/sdks/tools/README.md#create) - Create Tool
209
+ * [update](docs/sdks/tools/README.md#update) - Update Tool
200
210
  * [getByName](docs/sdks/tools/README.md#getbyname) - Tool Info
201
211
 
202
212
  </details>
@@ -249,7 +259,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
249
259
  - [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete Prompt
250
260
  - [`promptsGetById`](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
251
261
  - [`promptsList`](docs/sdks/prompts/README.md#list) - Prompt List
262
+ - [`promptsPromptsHistory`](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
252
263
  - [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update Prompt
264
+ - [`servicesCreate`](docs/sdks/services/README.md#create) - Create Service
265
+ - [`servicesList`](docs/sdks/services/README.md#list) - Service List
266
+ - [`servicesUpdate`](docs/sdks/services/README.md#update) - Update Service
253
267
  - [`sessionLabelsCreate`](docs/sdks/sessionlabels/README.md#create) - Create Label
254
268
  - [`sessionLabelsGetById`](docs/sdks/sessionlabels/README.md#getbyid) - Get Label By Id
255
269
  - [`sessionLabelsList`](docs/sdks/sessionlabels/README.md#list) - Session Labels List
@@ -258,8 +272,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
258
272
  - [`sessionsList`](docs/sdks/sessions/README.md#list) - Sessions List
259
273
  - [`sessionsSessionRecordingStream`](docs/sdks/sessions/README.md#sessionrecordingstream) - Stream Recording
260
274
  - [`sessionsTranscriptGetById`](docs/sdks/transcript/README.md#getbyid) - Get Session Transcript By Id
275
+ - [`toolsCreate`](docs/sdks/tools/README.md#create) - Create Tool
261
276
  - [`toolsGetByName`](docs/sdks/tools/README.md#getbyname) - Tool Info
262
277
  - [`toolsList`](docs/sdks/tools/README.md#list) - Tool List
278
+ - [`toolsUpdate`](docs/sdks/tools/README.md#update) - Update Tool
263
279
 
264
280
  </details>
265
281
  <!-- End Standalone functions [standalone-funcs] -->
@@ -12,6 +12,7 @@ Operations related to prompts
12
12
  * [update](#update) - Update Prompt
13
13
  * [getById](#getbyid) - Get Prompt By Id
14
14
  * [delete](#delete) - Delete Prompt
15
+ * [promptsHistory](#promptshistory) - Get Prompt History
15
16
 
16
17
  ## list
17
18
 
@@ -423,6 +424,83 @@ run();
423
424
 
424
425
  ### Errors
425
426
 
427
+ | Error Type | Status Code | Content Type |
428
+ | -------------------------- | -------------------------- | -------------------------- |
429
+ | errors.HTTPValidationError | 422 | application/json |
430
+ | errors.SDKError | 4XX, 5XX | \*/\* |
431
+
432
+ ## promptsHistory
433
+
434
+ Get a prompt by ID
435
+
436
+ ### Example Usage
437
+
438
+ ```typescript
439
+ import { SyllableSDK } from "syllable-sdk";
440
+
441
+ const syllableSDK = new SyllableSDK({
442
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
443
+ });
444
+
445
+ async function run() {
446
+ const result = await syllableSDK.prompts.promptsHistory({
447
+ promptId: 627932,
448
+ });
449
+
450
+ // Handle the result
451
+ console.log(result);
452
+ }
453
+
454
+ run();
455
+ ```
456
+
457
+ ### Standalone function
458
+
459
+ The standalone function version of this method:
460
+
461
+ ```typescript
462
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
463
+ import { promptsPromptsHistory } from "syllable-sdk/funcs/promptsPromptsHistory.js";
464
+
465
+ // Use `SyllableSDKCore` for best tree-shaking performance.
466
+ // You can create one instance of it to use across an application.
467
+ const syllableSDK = new SyllableSDKCore({
468
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
469
+ });
470
+
471
+ async function run() {
472
+ const res = await promptsPromptsHistory(syllableSDK, {
473
+ promptId: 627932,
474
+ });
475
+
476
+ if (!res.ok) {
477
+ throw res.error;
478
+ }
479
+
480
+ const { value: result } = res;
481
+
482
+ // Handle the result
483
+ console.log(result);
484
+ }
485
+
486
+ run();
487
+ ```
488
+
489
+ ### Parameters
490
+
491
+ | Parameter | Type | Required | Description |
492
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
493
+ | `request` | [operations.PromptsHistoryRequest](../../models/operations/promptshistoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
494
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
495
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
496
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
497
+
498
+ ### Response
499
+
500
+ **Promise\<[components.PromptHistory[]](../../models/.md)\>**
501
+
502
+ ### Errors
503
+
426
504
  | Error Type | Status Code | Content Type |
427
505
  | -------------------------- | -------------------------- | -------------------------- |
428
506
  | errors.HTTPValidationError | 422 | application/json |
@@ -0,0 +1,245 @@
1
+ # Services
2
+ (*services*)
3
+
4
+ ## Overview
5
+
6
+ Operations related to services
7
+
8
+ ### Available Operations
9
+
10
+ * [list](#list) - Service List
11
+ * [create](#create) - Create Service
12
+ * [update](#update) - Update Service
13
+
14
+ ## list
15
+
16
+ List the existing agents
17
+
18
+ ### Example Usage
19
+
20
+ ```typescript
21
+ import { SyllableSDK } from "syllable-sdk";
22
+
23
+ const syllableSDK = new SyllableSDK({
24
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
25
+ });
26
+
27
+ async function run() {
28
+ const result = await syllableSDK.services.list({});
29
+
30
+ // Handle the result
31
+ console.log(result);
32
+ }
33
+
34
+ run();
35
+ ```
36
+
37
+ ### Standalone function
38
+
39
+ The standalone function version of this method:
40
+
41
+ ```typescript
42
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
43
+ import { servicesList } from "syllable-sdk/funcs/servicesList.js";
44
+
45
+ // Use `SyllableSDKCore` for best tree-shaking performance.
46
+ // You can create one instance of it to use across an application.
47
+ const syllableSDK = new SyllableSDKCore({
48
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
49
+ });
50
+
51
+ async function run() {
52
+ const res = await servicesList(syllableSDK, {});
53
+
54
+ if (!res.ok) {
55
+ throw res.error;
56
+ }
57
+
58
+ const { value: result } = res;
59
+
60
+ // Handle the result
61
+ console.log(result);
62
+ }
63
+
64
+ run();
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Parameter | Type | Required | Description |
70
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
71
+ | `request` | [operations.ServiceListRequest](../../models/operations/servicelistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
72
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
73
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
74
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
75
+
76
+ ### Response
77
+
78
+ **Promise\<[components.ListResponseService](../../models/components/listresponseservice.md)\>**
79
+
80
+ ### Errors
81
+
82
+ | Error Type | Status Code | Content Type |
83
+ | -------------------------- | -------------------------- | -------------------------- |
84
+ | errors.HTTPValidationError | 422 | application/json |
85
+ | errors.SDKError | 4XX, 5XX | \*/\* |
86
+
87
+ ## create
88
+
89
+ Create Service
90
+
91
+ ### Example Usage
92
+
93
+ ```typescript
94
+ import { SyllableSDK } from "syllable-sdk";
95
+
96
+ const syllableSDK = new SyllableSDK({
97
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
98
+ });
99
+
100
+ async function run() {
101
+ const result = await syllableSDK.services.create({
102
+ name: "<value>",
103
+ description: "yuck vice between gee ugh ha",
104
+ });
105
+
106
+ // Handle the result
107
+ console.log(result);
108
+ }
109
+
110
+ run();
111
+ ```
112
+
113
+ ### Standalone function
114
+
115
+ The standalone function version of this method:
116
+
117
+ ```typescript
118
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
119
+ import { servicesCreate } from "syllable-sdk/funcs/servicesCreate.js";
120
+
121
+ // Use `SyllableSDKCore` for best tree-shaking performance.
122
+ // You can create one instance of it to use across an application.
123
+ const syllableSDK = new SyllableSDKCore({
124
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
125
+ });
126
+
127
+ async function run() {
128
+ const res = await servicesCreate(syllableSDK, {
129
+ name: "<value>",
130
+ description: "yuck vice between gee ugh ha",
131
+ });
132
+
133
+ if (!res.ok) {
134
+ throw res.error;
135
+ }
136
+
137
+ const { value: result } = res;
138
+
139
+ // Handle the result
140
+ console.log(result);
141
+ }
142
+
143
+ run();
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+ | Parameter | Type | Required | Description |
149
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
150
+ | `request` | [components.ServiceCreate](../../models/components/servicecreate.md) | :heavy_check_mark: | The request object to use for the request. |
151
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
152
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
153
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
154
+
155
+ ### Response
156
+
157
+ **Promise\<[components.Service](../../models/components/service.md)\>**
158
+
159
+ ### Errors
160
+
161
+ | Error Type | Status Code | Content Type |
162
+ | -------------------------- | -------------------------- | -------------------------- |
163
+ | errors.HTTPValidationError | 422 | application/json |
164
+ | errors.SDKError | 4XX, 5XX | \*/\* |
165
+
166
+ ## update
167
+
168
+ Update Service
169
+
170
+ ### Example Usage
171
+
172
+ ```typescript
173
+ import { SyllableSDK } from "syllable-sdk";
174
+
175
+ const syllableSDK = new SyllableSDK({
176
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
177
+ });
178
+
179
+ async function run() {
180
+ const result = await syllableSDK.services.update({
181
+ name: "<value>",
182
+ description: "awful underneath retention too mobility char innocently dowse restfully",
183
+ id: 243447,
184
+ });
185
+
186
+ // Handle the result
187
+ console.log(result);
188
+ }
189
+
190
+ run();
191
+ ```
192
+
193
+ ### Standalone function
194
+
195
+ The standalone function version of this method:
196
+
197
+ ```typescript
198
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
199
+ import { servicesUpdate } from "syllable-sdk/funcs/servicesUpdate.js";
200
+
201
+ // Use `SyllableSDKCore` for best tree-shaking performance.
202
+ // You can create one instance of it to use across an application.
203
+ const syllableSDK = new SyllableSDKCore({
204
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
205
+ });
206
+
207
+ async function run() {
208
+ const res = await servicesUpdate(syllableSDK, {
209
+ name: "<value>",
210
+ description: "awful underneath retention too mobility char innocently dowse restfully",
211
+ id: 243447,
212
+ });
213
+
214
+ if (!res.ok) {
215
+ throw res.error;
216
+ }
217
+
218
+ const { value: result } = res;
219
+
220
+ // Handle the result
221
+ console.log(result);
222
+ }
223
+
224
+ run();
225
+ ```
226
+
227
+ ### Parameters
228
+
229
+ | Parameter | Type | Required | Description |
230
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
231
+ | `request` | [components.ServiceUpdate](../../models/components/serviceupdate.md) | :heavy_check_mark: | The request object to use for the request. |
232
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
233
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
234
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
235
+
236
+ ### Response
237
+
238
+ **Promise\<[components.Service](../../models/components/service.md)\>**
239
+
240
+ ### Errors
241
+
242
+ | Error Type | Status Code | Content Type |
243
+ | -------------------------- | -------------------------- | -------------------------- |
244
+ | errors.HTTPValidationError | 422 | application/json |
245
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -9,14 +9,15 @@ Syllble SDK gives you the power of awesome AI agentry. 🚀
9
9
 
10
10
  ## Overview
11
11
 
12
- The Syllble SDK provides a comprehensive set of tools and APIs to integrate powerful AI capabilities into your applications. Whether you're building chatbots, virtual assistants, or any other AI-driven solutions, Syllble SDK has got you covered.
12
+ The Syllble SDK provides a comprehensive set of tools and APIs to integrate powerful AI
13
+ capabilities into your communication applications. Whether you're building chatbots, virtual
14
+ assistants, or any other AI-driven solutions, Syllble SDK has got you covered.
13
15
 
14
16
  ## Features
15
17
 
16
18
  - **Natural Language Processing (NLP)**: Understand and generate human language with ease.
17
19
  - **Machine Learning Models**: Leverage pre-trained models or train your own custom models.
18
20
  - **Speech Recognition**: Convert speech to text and vice versa.
19
- - **Image Recognition**: Identify objects, faces, and scenes in images.
20
21
  - **Data Analytics**: Analyze and visualize data to gain insights.
21
22
  - **Integration**: Seamlessly integrate with other services and platforms.
22
23
 
@@ -8,11 +8,13 @@ Operations related to tools
8
8
  ### Available Operations
9
9
 
10
10
  * [list](#list) - Tool List
11
+ * [create](#create) - Create Tool
12
+ * [update](#update) - Update Tool
11
13
  * [getByName](#getbyname) - Tool Info
12
14
 
13
15
  ## list
14
16
 
15
- List the existing agents
17
+ List the existing tools
16
18
 
17
19
  ### Example Usage
18
20
 
@@ -83,6 +85,166 @@ run();
83
85
  | errors.HTTPValidationError | 422 | application/json |
84
86
  | errors.SDKError | 4XX, 5XX | \*/\* |
85
87
 
88
+ ## create
89
+
90
+ Create a new tool
91
+
92
+ ### Example Usage
93
+
94
+ ```typescript
95
+ import { SyllableSDK } from "syllable-sdk";
96
+
97
+ const syllableSDK = new SyllableSDK({
98
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
99
+ });
100
+
101
+ async function run() {
102
+ const result = await syllableSDK.tools.create({
103
+ name: "<value>",
104
+ serviceId: 486589,
105
+ });
106
+
107
+ // Handle the result
108
+ console.log(result);
109
+ }
110
+
111
+ run();
112
+ ```
113
+
114
+ ### Standalone function
115
+
116
+ The standalone function version of this method:
117
+
118
+ ```typescript
119
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
120
+ import { toolsCreate } from "syllable-sdk/funcs/toolsCreate.js";
121
+
122
+ // Use `SyllableSDKCore` for best tree-shaking performance.
123
+ // You can create one instance of it to use across an application.
124
+ const syllableSDK = new SyllableSDKCore({
125
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
126
+ });
127
+
128
+ async function run() {
129
+ const res = await toolsCreate(syllableSDK, {
130
+ name: "<value>",
131
+ serviceId: 486589,
132
+ });
133
+
134
+ if (!res.ok) {
135
+ throw res.error;
136
+ }
137
+
138
+ const { value: result } = res;
139
+
140
+ // Handle the result
141
+ console.log(result);
142
+ }
143
+
144
+ run();
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ | Parameter | Type | Required | Description |
150
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
151
+ | `request` | [components.ToolCreate](../../models/components/toolcreate.md) | :heavy_check_mark: | The request object to use for the request. |
152
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
153
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
154
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
155
+
156
+ ### Response
157
+
158
+ **Promise\<[components.Tool](../../models/components/tool.md)\>**
159
+
160
+ ### Errors
161
+
162
+ | Error Type | Status Code | Content Type |
163
+ | -------------------------- | -------------------------- | -------------------------- |
164
+ | errors.HTTPValidationError | 422 | application/json |
165
+ | errors.SDKError | 4XX, 5XX | \*/\* |
166
+
167
+ ## update
168
+
169
+ Update an existing tool
170
+
171
+ ### Example Usage
172
+
173
+ ```typescript
174
+ import { SyllableSDK } from "syllable-sdk";
175
+
176
+ const syllableSDK = new SyllableSDK({
177
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
178
+ });
179
+
180
+ async function run() {
181
+ const result = await syllableSDK.tools.update({
182
+ name: "<value>",
183
+ serviceId: 857478,
184
+ id: 597129,
185
+ });
186
+
187
+ // Handle the result
188
+ console.log(result);
189
+ }
190
+
191
+ run();
192
+ ```
193
+
194
+ ### Standalone function
195
+
196
+ The standalone function version of this method:
197
+
198
+ ```typescript
199
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
200
+ import { toolsUpdate } from "syllable-sdk/funcs/toolsUpdate.js";
201
+
202
+ // Use `SyllableSDKCore` for best tree-shaking performance.
203
+ // You can create one instance of it to use across an application.
204
+ const syllableSDK = new SyllableSDKCore({
205
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
206
+ });
207
+
208
+ async function run() {
209
+ const res = await toolsUpdate(syllableSDK, {
210
+ name: "<value>",
211
+ serviceId: 857478,
212
+ id: 597129,
213
+ });
214
+
215
+ if (!res.ok) {
216
+ throw res.error;
217
+ }
218
+
219
+ const { value: result } = res;
220
+
221
+ // Handle the result
222
+ console.log(result);
223
+ }
224
+
225
+ run();
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ | Parameter | Type | Required | Description |
231
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
232
+ | `request` | [components.ToolUpdate](../../models/components/toolupdate.md) | :heavy_check_mark: | The request object to use for the request. |
233
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
234
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
235
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
236
+
237
+ ### Response
238
+
239
+ **Promise\<[components.Tool](../../models/components/tool.md)\>**
240
+
241
+ ### Errors
242
+
243
+ | Error Type | Status Code | Content Type |
244
+ | -------------------------- | -------------------------- | -------------------------- |
245
+ | errors.HTTPValidationError | 422 | application/json |
246
+ | errors.SDKError | 4XX, 5XX | \*/\* |
247
+
86
248
  ## getByName
87
249
 
88
250
  Get the details of a specific tool
@@ -3,6 +3,8 @@
3
3
 
4
4
  ## Overview
5
5
 
6
+ Operations related to session transcription
7
+
6
8
  ### Available Operations
7
9
 
8
10
  * [getById](#getbyid) - Get Session Transcript By Id
@@ -0,0 +1,17 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { SDKError } from "../models/errors/sdkerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Get Prompt History
12
+ *
13
+ * @remarks
14
+ * Get a prompt by ID
15
+ */
16
+ export declare function promptsPromptsHistory(client: SyllableSDKCore, request: operations.PromptsHistoryRequest, options?: RequestOptions): Promise<Result<Array<components.PromptHistory>, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
17
+ //# sourceMappingURL=promptsPromptsHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promptsPromptsHistory.d.ts","sourceRoot":"","sources":["../src/funcs/promptsPromptsHistory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAC7B,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0FA"}