syllable-sdk 0.1.0-alpha.70 → 0.1.0-alpha.71
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/README.md +17 -0
- package/docs/sdks/insights/README.md +97 -0
- package/docs/sdks/prompts/README.md +81 -5
- package/docs/sdks/takeouts/README.md +163 -0
- package/docs/sdks/v1/README.md +251 -1
- package/funcs/insightsList.d.ts +17 -0
- package/funcs/insightsList.d.ts.map +1 -0
- package/funcs/insightsList.js +114 -0
- package/funcs/insightsList.js.map +1 -0
- package/funcs/promptsPromptGetSupportedLlms.d.ts +15 -0
- package/funcs/promptsPromptGetSupportedLlms.d.ts.map +1 -0
- package/funcs/promptsPromptGetSupportedLlms.js +89 -0
- package/funcs/promptsPromptGetSupportedLlms.js.map +1 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
- package/funcs/v1List.d.ts +17 -0
- package/funcs/v1List.d.ts.map +1 -0
- package/funcs/v1List.js +114 -0
- package/funcs/v1List.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createtakeoutresponse.d.ts +31 -0
- package/models/components/createtakeoutresponse.d.ts.map +1 -0
- package/models/components/createtakeoutresponse.js +72 -0
- package/models/components/createtakeoutresponse.js.map +1 -0
- package/models/components/daotakeoutcreate.d.ts +31 -0
- package/models/components/daotakeoutcreate.d.ts.map +1 -0
- package/models/components/daotakeoutcreate.js +72 -0
- package/models/components/daotakeoutcreate.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insightsoutput.d.ts +104 -0
- package/models/components/insightsoutput.d.ts.map +1 -0
- package/models/components/insightsoutput.js +127 -0
- package/models/components/insightsoutput.js.map +1 -0
- package/models/components/insightsproperties.d.ts +34 -0
- package/models/components/insightsproperties.d.ts.map +1 -0
- package/models/components/insightsproperties.js +52 -0
- package/models/components/insightsproperties.js.map +1 -0
- package/models/components/listresponseinsightsoutput.d.ts +53 -0
- package/models/components/listresponseinsightsoutput.d.ts.map +1 -0
- package/models/components/listresponseinsightsoutput.js +81 -0
- package/models/components/listresponseinsightsoutput.js.map +1 -0
- package/models/components/promptllmconfig.d.ts +1 -1
- package/models/components/supportedllm.d.ts +61 -0
- package/models/components/supportedllm.d.ts.map +1 -0
- package/models/components/supportedllm.js +81 -0
- package/models/components/supportedllm.js.map +1 -0
- package/models/components/takeoutrequeststatus.d.ts +43 -0
- package/models/components/takeoutrequeststatus.d.ts.map +1 -0
- package/models/components/takeoutrequeststatus.js +56 -0
- package/models/components/takeoutrequeststatus.js.map +1 -0
- package/models/components/takeoutstatusresponse.d.ts +39 -0
- package/models/components/takeoutstatusresponse.d.ts.map +1 -0
- package/models/components/takeoutstatusresponse.js +79 -0
- package/models/components/takeoutstatusresponse.js.map +1 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +29 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +1 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js +68 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightslist.d.ts +73 -0
- package/models/operations/insightslist.d.ts.map +1 -0
- package/models/operations/insightslist.js +101 -0
- package/models/operations/insightslist.js.map +1 -0
- package/openapi.json +1080 -233
- package/package.json +1 -1
- package/sdk/insights.d.ts +10 -1
- package/sdk/insights.d.ts.map +1 -1
- package/sdk/insights.js +11 -0
- package/sdk/insights.js.map +1 -1
- package/sdk/prompts.d.ts +7 -0
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +10 -0
- package/sdk/prompts.js.map +1 -1
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/takeouts.d.ts +14 -0
- package/sdk/takeouts.d.ts.map +1 -0
- package/sdk/takeouts.js +26 -0
- package/sdk/takeouts.js.map +1 -0
- package/sdk/v1.d.ts +15 -0
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +24 -0
- package/sdk/v1.js.map +1 -1
- package/src/funcs/insightsList.ts +148 -0
- package/src/funcs/promptsPromptGetSupportedLlms.ts +112 -0
- package/src/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
- package/src/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
- package/src/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
- package/src/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
- package/src/funcs/v1List.ts +148 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createtakeoutresponse.ts +81 -0
- package/src/models/components/daotakeoutcreate.ts +81 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/insightsoutput.ts +207 -0
- package/src/models/components/insightsproperties.ts +35 -0
- package/src/models/components/listresponseinsightsoutput.ts +116 -0
- package/src/models/components/promptllmconfig.ts +1 -1
- package/src/models/components/supportedllm.ts +119 -0
- package/src/models/components/takeoutrequeststatus.ts +42 -0
- package/src/models/components/takeoutstatusresponse.ts +99 -0
- package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +87 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/insightslist.ts +151 -0
- package/src/sdk/insights.ts +22 -1
- package/src/sdk/prompts.ts +16 -0
- package/src/sdk/sdk.ts +11 -5
- package/src/sdk/takeouts.ts +40 -0
- package/src/sdk/v1.ts +48 -0
package/README.md
CHANGED
|
@@ -196,6 +196,7 @@ run();
|
|
|
196
196
|
|
|
197
197
|
### [insights](docs/sdks/insights/README.md)
|
|
198
198
|
|
|
199
|
+
* [list](docs/sdks/insights/README.md#list) - Insights List
|
|
199
200
|
|
|
200
201
|
#### [insights.tools](docs/sdks/syllablesdktools/README.md)
|
|
201
202
|
|
|
@@ -229,6 +230,7 @@ run();
|
|
|
229
230
|
* [getById](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
|
|
230
231
|
* [delete](docs/sdks/prompts/README.md#delete) - Delete Prompt
|
|
231
232
|
* [promptsHistory](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
|
|
233
|
+
* [promptGetSupportedLlms](docs/sdks/prompts/README.md#promptgetsupportedllms) - Get Supported Llm Configs
|
|
232
234
|
|
|
233
235
|
### [services](docs/sdks/services/README.md)
|
|
234
236
|
|
|
@@ -270,6 +272,11 @@ run();
|
|
|
270
272
|
* [getById](docs/sdks/transcript/README.md#getbyid) - Get Session Transcript By Id
|
|
271
273
|
|
|
272
274
|
|
|
275
|
+
### [takeouts](docs/sdks/takeouts/README.md)
|
|
276
|
+
|
|
277
|
+
* [createTakeoutApiV1TakeoutsCreatePost](docs/sdks/takeouts/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
278
|
+
* [getTakeoutApiV1TakeoutsGetJobIdGet](docs/sdks/takeouts/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
279
|
+
|
|
273
280
|
### [tools](docs/sdks/tools/README.md)
|
|
274
281
|
|
|
275
282
|
* [list](docs/sdks/tools/README.md#list) - Tool List
|
|
@@ -280,12 +287,15 @@ run();
|
|
|
280
287
|
|
|
281
288
|
### [v1](docs/sdks/v1/README.md)
|
|
282
289
|
|
|
290
|
+
* [list](docs/sdks/v1/README.md#list) - Insights List
|
|
283
291
|
* [postListDashboard](docs/sdks/v1/README.md#postlistdashboard) - Post List Dashboards
|
|
284
292
|
* [postGetDashboard](docs/sdks/v1/README.md#postgetdashboard) - Post Fetch Info
|
|
285
293
|
* [~~postSessionEventsDashboard~~](docs/sdks/v1/README.md#postsessioneventsdashboard) - Post Session Events :warning: **Deprecated**
|
|
286
294
|
* [~~postSessionSummaryDashboard~~](docs/sdks/v1/README.md#postsessionsummarydashboard) - Post Session Summary :warning: **Deprecated**
|
|
287
295
|
* [~~postSessionTransfersDashboard~~](docs/sdks/v1/README.md#postsessiontransfersdashboard) - Post Session Transfers :warning: **Deprecated**
|
|
288
296
|
* [~~postSessionsDashboard~~](docs/sdks/v1/README.md#postsessionsdashboard) - Post Sessions :warning: **Deprecated**
|
|
297
|
+
* [createTakeoutApiV1TakeoutsCreatePost](docs/sdks/v1/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
298
|
+
* [getTakeoutApiV1TakeoutsGetJobIdGet](docs/sdks/v1/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
289
299
|
|
|
290
300
|
</details>
|
|
291
301
|
<!-- End Available Resources and Operations [operations] -->
|
|
@@ -333,6 +343,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
333
343
|
- [`dataSourcesList`](docs/sdks/datasources/README.md#list) - List Data Sources
|
|
334
344
|
- [`dataSourcesUpdate`](docs/sdks/datasources/README.md#update) - Update Data Source
|
|
335
345
|
- [`eventsList`](docs/sdks/events/README.md#list) - Events List
|
|
346
|
+
- [`insightsList`](docs/sdks/insights/README.md#list) - Insights List
|
|
336
347
|
- [`insightsToolsCreate`](docs/sdks/syllablesdktools/README.md#create) - Create Insight Tool
|
|
337
348
|
- [`insightsToolsGetById`](docs/sdks/syllablesdktools/README.md#getbyid) - Get Insight Tool By Id
|
|
338
349
|
- [`insightsToolsInsightToolGetDefinitions`](docs/sdks/syllablesdktools/README.md#insighttoolgetdefinitions) - Get Insight Tool Definitions
|
|
@@ -352,6 +363,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
352
363
|
- [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete Prompt
|
|
353
364
|
- [`promptsGetById`](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
|
|
354
365
|
- [`promptsList`](docs/sdks/prompts/README.md#list) - Prompt List
|
|
366
|
+
- [`promptsPromptGetSupportedLlms`](docs/sdks/prompts/README.md#promptgetsupportedllms) - Get Supported Llm Configs
|
|
355
367
|
- [`promptsPromptsHistory`](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
|
|
356
368
|
- [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update Prompt
|
|
357
369
|
- [`servicesCreate`](docs/sdks/services/README.md#create) - Create Service
|
|
@@ -372,11 +384,16 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
372
384
|
- [`sessionsSessionRecordingStream`](docs/sdks/sessions/README.md#sessionrecordingstream) - Stream Recording
|
|
373
385
|
- [`sessionsSummaryGetById`](docs/sdks/summary/README.md#getbyid) - Get Session Summary By Id
|
|
374
386
|
- [`sessionsTranscriptGetById`](docs/sdks/transcript/README.md#getbyid) - Get Session Transcript By Id
|
|
387
|
+
- [`takeoutsCreateTakeoutApiV1TakeoutsCreatePost`](docs/sdks/takeouts/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
388
|
+
- [`takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet`](docs/sdks/takeouts/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
375
389
|
- [`toolsCreate`](docs/sdks/tools/README.md#create) - Create Tool
|
|
376
390
|
- [`toolsDelete`](docs/sdks/tools/README.md#delete) - Delete Tool
|
|
377
391
|
- [`toolsGetByName`](docs/sdks/tools/README.md#getbyname) - Tool Info
|
|
378
392
|
- [`toolsList`](docs/sdks/tools/README.md#list) - Tool List
|
|
379
393
|
- [`toolsUpdate`](docs/sdks/tools/README.md#update) - Update Tool
|
|
394
|
+
- [`v1CreateTakeoutApiV1TakeoutsCreatePost`](docs/sdks/v1/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
395
|
+
- [`v1GetTakeoutApiV1TakeoutsGetJobIdGet`](docs/sdks/v1/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
396
|
+
- [`v1List`](docs/sdks/v1/README.md#list) - Insights List
|
|
380
397
|
- [`v1PostGetDashboard`](docs/sdks/v1/README.md#postgetdashboard) - Post Fetch Info
|
|
381
398
|
- [`v1PostListDashboard`](docs/sdks/v1/README.md#postlistdashboard) - Post List Dashboards
|
|
382
399
|
- ~~[`dashboardsPostSessionEventsDashboard`](docs/sdks/dashboards/README.md#postsessioneventsdashboard)~~ - Post Session Events :warning: **Deprecated**
|
|
@@ -3,4 +3,101 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
+
Operations related to insights results. An insight is a tool that processes conversation data to extract information and generate reports.
|
|
7
|
+
|
|
6
8
|
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [list](#list) - Insights List
|
|
11
|
+
|
|
12
|
+
## list
|
|
13
|
+
|
|
14
|
+
List the existing insight_tools
|
|
15
|
+
|
|
16
|
+
### Example Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
20
|
+
|
|
21
|
+
const syllableSDK = new SyllableSDK({
|
|
22
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
async function run() {
|
|
26
|
+
const result = await syllableSDK.insights.list({
|
|
27
|
+
page: 0,
|
|
28
|
+
searchFields: [
|
|
29
|
+
"insight_tool_id",
|
|
30
|
+
],
|
|
31
|
+
searchFieldValues: [
|
|
32
|
+
"Some Object Name",
|
|
33
|
+
],
|
|
34
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
35
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// Handle the result
|
|
39
|
+
console.log(result);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
run();
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Standalone function
|
|
46
|
+
|
|
47
|
+
The standalone function version of this method:
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
51
|
+
import { insightsList } from "syllable-sdk/funcs/insightsList.js";
|
|
52
|
+
|
|
53
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
54
|
+
// You can create one instance of it to use across an application.
|
|
55
|
+
const syllableSDK = new SyllableSDKCore({
|
|
56
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
async function run() {
|
|
60
|
+
const res = await insightsList(syllableSDK, {
|
|
61
|
+
page: 0,
|
|
62
|
+
searchFields: [
|
|
63
|
+
"insight_tool_id",
|
|
64
|
+
],
|
|
65
|
+
searchFieldValues: [
|
|
66
|
+
"Some Object Name",
|
|
67
|
+
],
|
|
68
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
69
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
if (!res.ok) {
|
|
73
|
+
throw res.error;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const { value: result } = res;
|
|
77
|
+
|
|
78
|
+
// Handle the result
|
|
79
|
+
console.log(result);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
run();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
| Parameter | Type | Required | Description |
|
|
88
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
89
|
+
| `request` | [operations.InsightsListRequest](../../models/operations/insightslistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
90
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
91
|
+
| `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. |
|
|
92
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
93
|
+
|
|
94
|
+
### Response
|
|
95
|
+
|
|
96
|
+
**Promise\<[components.ListResponseInsightsOutput](../../models/components/listresponseinsightsoutput.md)\>**
|
|
97
|
+
|
|
98
|
+
### Errors
|
|
99
|
+
|
|
100
|
+
| Error Type | Status Code | Content Type |
|
|
101
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
102
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
103
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -13,6 +13,7 @@ Operations related to prompts. A prompt defines the behavior of an age
|
|
|
13
13
|
* [getById](#getbyid) - Get Prompt By Id
|
|
14
14
|
* [delete](#delete) - Delete Prompt
|
|
15
15
|
* [promptsHistory](#promptshistory) - Get Prompt History
|
|
16
|
+
* [promptGetSupportedLlms](#promptgetsupportedllms) - Get Supported Llm Configs
|
|
16
17
|
|
|
17
18
|
## list
|
|
18
19
|
|
|
@@ -127,7 +128,8 @@ async function run() {
|
|
|
127
128
|
type: "prompt_v1",
|
|
128
129
|
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
|
|
129
130
|
tools: [
|
|
130
|
-
"summary
|
|
131
|
+
"summary",
|
|
132
|
+
"hangup",
|
|
131
133
|
],
|
|
132
134
|
llmConfig: {
|
|
133
135
|
version: "2024-05-13",
|
|
@@ -165,7 +167,8 @@ async function run() {
|
|
|
165
167
|
type: "prompt_v1",
|
|
166
168
|
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
|
|
167
169
|
tools: [
|
|
168
|
-
"summary
|
|
170
|
+
"summary",
|
|
171
|
+
"hangup",
|
|
169
172
|
],
|
|
170
173
|
llmConfig: {
|
|
171
174
|
version: "2024-05-13",
|
|
@@ -228,7 +231,8 @@ async function run() {
|
|
|
228
231
|
type: "prompt_v1",
|
|
229
232
|
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
|
|
230
233
|
tools: [
|
|
231
|
-
"summary
|
|
234
|
+
"summary",
|
|
235
|
+
"hangup",
|
|
232
236
|
],
|
|
233
237
|
llmConfig: {
|
|
234
238
|
version: "2024-05-13",
|
|
@@ -268,7 +272,8 @@ async function run() {
|
|
|
268
272
|
type: "prompt_v1",
|
|
269
273
|
context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
|
|
270
274
|
tools: [
|
|
271
|
-
"summary
|
|
275
|
+
"summary",
|
|
276
|
+
"hangup",
|
|
272
277
|
],
|
|
273
278
|
llmConfig: {
|
|
274
279
|
version: "2024-05-13",
|
|
@@ -544,4 +549,75 @@ run();
|
|
|
544
549
|
| Error Type | Status Code | Content Type |
|
|
545
550
|
| -------------------------- | -------------------------- | -------------------------- |
|
|
546
551
|
| errors.HTTPValidationError | 422 | application/json |
|
|
547
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
552
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
553
|
+
|
|
554
|
+
## promptGetSupportedLlms
|
|
555
|
+
|
|
556
|
+
Get supported LLM configs.
|
|
557
|
+
|
|
558
|
+
### Example Usage
|
|
559
|
+
|
|
560
|
+
```typescript
|
|
561
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
562
|
+
|
|
563
|
+
const syllableSDK = new SyllableSDK({
|
|
564
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
async function run() {
|
|
568
|
+
const result = await syllableSDK.prompts.promptGetSupportedLlms();
|
|
569
|
+
|
|
570
|
+
// Handle the result
|
|
571
|
+
console.log(result);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
run();
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
### Standalone function
|
|
578
|
+
|
|
579
|
+
The standalone function version of this method:
|
|
580
|
+
|
|
581
|
+
```typescript
|
|
582
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
583
|
+
import { promptsPromptGetSupportedLlms } from "syllable-sdk/funcs/promptsPromptGetSupportedLlms.js";
|
|
584
|
+
|
|
585
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
586
|
+
// You can create one instance of it to use across an application.
|
|
587
|
+
const syllableSDK = new SyllableSDKCore({
|
|
588
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
589
|
+
});
|
|
590
|
+
|
|
591
|
+
async function run() {
|
|
592
|
+
const res = await promptsPromptGetSupportedLlms(syllableSDK);
|
|
593
|
+
|
|
594
|
+
if (!res.ok) {
|
|
595
|
+
throw res.error;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
const { value: result } = res;
|
|
599
|
+
|
|
600
|
+
// Handle the result
|
|
601
|
+
console.log(result);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
run();
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
### Parameters
|
|
608
|
+
|
|
609
|
+
| Parameter | Type | Required | Description |
|
|
610
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
611
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
612
|
+
| `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. |
|
|
613
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
614
|
+
|
|
615
|
+
### Response
|
|
616
|
+
|
|
617
|
+
**Promise\<[components.SupportedLlm[]](../../models/.md)\>**
|
|
618
|
+
|
|
619
|
+
### Errors
|
|
620
|
+
|
|
621
|
+
| Error Type | Status Code | Content Type |
|
|
622
|
+
| --------------- | --------------- | --------------- |
|
|
623
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Takeouts
|
|
2
|
+
(*takeouts*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [createTakeoutApiV1TakeoutsCreatePost](#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
9
|
+
* [getTakeoutApiV1TakeoutsGetJobIdGet](#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
10
|
+
|
|
11
|
+
## createTakeoutApiV1TakeoutsCreatePost
|
|
12
|
+
|
|
13
|
+
Create Takeout
|
|
14
|
+
|
|
15
|
+
### Example Usage
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
19
|
+
|
|
20
|
+
const syllableSDK = new SyllableSDK({
|
|
21
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
async function run() {
|
|
25
|
+
const result = await syllableSDK.takeouts.createTakeoutApiV1TakeoutsCreatePost({
|
|
26
|
+
subOrganizationId: 38300,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Handle the result
|
|
30
|
+
console.log(result);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
run();
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Standalone function
|
|
37
|
+
|
|
38
|
+
The standalone function version of this method:
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
42
|
+
import { takeoutsCreateTakeoutApiV1TakeoutsCreatePost } from "syllable-sdk/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js";
|
|
43
|
+
|
|
44
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
45
|
+
// You can create one instance of it to use across an application.
|
|
46
|
+
const syllableSDK = new SyllableSDKCore({
|
|
47
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
async function run() {
|
|
51
|
+
const res = await takeoutsCreateTakeoutApiV1TakeoutsCreatePost(syllableSDK, {
|
|
52
|
+
subOrganizationId: 38300,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
if (!res.ok) {
|
|
56
|
+
throw res.error;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const { value: result } = res;
|
|
60
|
+
|
|
61
|
+
// Handle the result
|
|
62
|
+
console.log(result);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
run();
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
| Parameter | Type | Required | Description |
|
|
71
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
72
|
+
| `request` | [components.DaoTakeoutCreate](../../models/components/daotakeoutcreate.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
73
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
74
|
+
| `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. |
|
|
75
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
76
|
+
|
|
77
|
+
### Response
|
|
78
|
+
|
|
79
|
+
**Promise\<[components.CreateTakeoutResponse](../../models/components/createtakeoutresponse.md)\>**
|
|
80
|
+
|
|
81
|
+
### Errors
|
|
82
|
+
|
|
83
|
+
| Error Type | Status Code | Content Type |
|
|
84
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
85
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
86
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
87
|
+
|
|
88
|
+
## getTakeoutApiV1TakeoutsGetJobIdGet
|
|
89
|
+
|
|
90
|
+
Get Takeout
|
|
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.takeouts.getTakeoutApiV1TakeoutsGetJobIdGet({
|
|
103
|
+
jobId: "<id>",
|
|
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 { takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet } from "syllable-sdk/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.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 takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(syllableSDK, {
|
|
129
|
+
jobId: "<id>",
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
if (!res.ok) {
|
|
133
|
+
throw res.error;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const { value: result } = res;
|
|
137
|
+
|
|
138
|
+
// Handle the result
|
|
139
|
+
console.log(result);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
run();
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
| Parameter | Type | Required | Description |
|
|
148
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
149
|
+
| `request` | [operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest](../../models/operations/gettakeoutapiv1takeoutsgetjobidgetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
150
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
151
|
+
| `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. |
|
|
152
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
153
|
+
|
|
154
|
+
### Response
|
|
155
|
+
|
|
156
|
+
**Promise\<[components.TakeoutStatusResponse](../../models/components/takeoutstatusresponse.md)\>**
|
|
157
|
+
|
|
158
|
+
### Errors
|
|
159
|
+
|
|
160
|
+
| Error Type | Status Code | Content Type |
|
|
161
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
162
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
163
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|