syllable-sdk 0.1.0-alpha.59 → 0.1.0-alpha.60
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/FUNCTIONS.md +11 -1
- package/README.md +75 -6
- package/docs/sdks/agents/README.md +23 -3
- package/docs/sdks/channels/README.md +22 -2
- package/docs/sdks/conversations/README.md +22 -2
- package/docs/sdks/custommessages/README.md +23 -3
- package/docs/sdks/dashboards/README.md +22 -2
- package/docs/sdks/datasources/README.md +23 -3
- package/docs/sdks/events/README.md +22 -2
- package/docs/sdks/languagegroups/README.md +23 -3
- package/docs/sdks/prompts/README.md +23 -3
- package/docs/sdks/services/README.md +22 -2
- package/docs/sdks/sessiondebug/README.md +245 -0
- package/docs/sdks/sessionlabels/README.md +23 -3
- package/docs/sdks/sessions/README.md +23 -3
- package/docs/sdks/syllablesdktools/README.md +22 -2
- package/docs/sdks/targets/README.md +45 -5
- package/docs/sdks/tools/README.md +23 -3
- package/docs/sdks/v1/README.md +22 -2
- package/docs/sdks/workflows/README.md +22 -2
- package/funcs/sessionDebugGetSessionDataBySessionId.d.ts +14 -0
- package/funcs/sessionDebugGetSessionDataBySessionId.d.ts.map +1 -0
- package/funcs/sessionDebugGetSessionDataBySessionId.js +105 -0
- package/funcs/sessionDebugGetSessionDataBySessionId.js.map +1 -0
- package/funcs/sessionDebugGetSessionDataBySid.d.ts +14 -0
- package/funcs/sessionDebugGetSessionDataBySid.d.ts.map +1 -0
- package/funcs/sessionDebugGetSessionDataBySid.js +103 -0
- package/funcs/sessionDebugGetSessionDataBySid.js.map +1 -0
- package/funcs/sessionDebugGetSessionToolCallResultById.d.ts +14 -0
- package/funcs/sessionDebugGetSessionToolCallResultById.d.ts.map +1 -0
- package/funcs/sessionDebugGetSessionToolCallResultById.js +109 -0
- package/funcs/sessionDebugGetSessionToolCallResultById.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mintlify/mint.json +2 -9
- package/models/components/agentresponse.d.ts +2 -1
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/channeltargetresponse.d.ts +2 -1
- package/models/components/channeltargetresponse.d.ts.map +1 -1
- package/models/components/channeltargetresponse.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +2 -1
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/datasourcedetailresponse.d.ts +6 -1
- package/models/components/datasourcedetailresponse.d.ts.map +1 -1
- package/models/components/datasourcedetailresponse.js.map +1 -1
- package/models/components/datasourcemetadataresponse.d.ts +6 -1
- package/models/components/datasourcemetadataresponse.d.ts.map +1 -1
- package/models/components/datasourcemetadataresponse.js.map +1 -1
- package/models/components/dialogmessage.d.ts +29 -0
- package/models/components/dialogmessage.d.ts.map +1 -0
- package/models/components/dialogmessage.js +59 -0
- package/models/components/dialogmessage.js.map +1 -0
- package/models/components/dialogrole.d.ts +28 -0
- package/models/components/dialogrole.d.ts.map +1 -0
- package/models/components/dialogrole.js +51 -0
- package/models/components/dialogrole.js.map +1 -0
- package/models/components/dialogtoolcall.d.ts +56 -0
- package/models/components/dialogtoolcall.d.ts.map +1 -0
- package/models/components/dialogtoolcall.js +101 -0
- package/models/components/dialogtoolcall.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/languagegroupresponse.d.ts +7 -0
- package/models/components/languagegroupresponse.d.ts.map +1 -1
- package/models/components/languagegroupresponse.js.map +1 -1
- package/models/components/promptresponse.d.ts +2 -1
- package/models/components/promptresponse.d.ts.map +1 -1
- package/models/components/promptresponse.js.map +1 -1
- package/models/components/sessiondata.d.ts +38 -0
- package/models/components/sessiondata.d.ts.map +1 -0
- package/models/components/sessiondata.js +79 -0
- package/models/components/sessiondata.js.map +1 -0
- package/models/components/sessionmessage.d.ts +38 -0
- package/models/components/sessionmessage.d.ts.map +1 -0
- package/models/components/sessionmessage.js +77 -0
- package/models/components/sessionmessage.js.map +1 -0
- package/models/components/sessiontranscriptionresponse.d.ts +4 -1
- package/models/components/sessiontranscriptionresponse.d.ts.map +1 -1
- package/models/components/sessiontranscriptionresponse.js.map +1 -1
- package/models/components/testmessage.d.ts +5 -3
- package/models/components/testmessage.d.ts.map +1 -1
- package/models/components/testmessage.js +2 -2
- package/models/components/testmessage.js.map +1 -1
- package/models/components/tooldetailresponse.d.ts +1 -0
- package/models/components/tooldetailresponse.d.ts.map +1 -1
- package/models/components/tooldetailresponse.js.map +1 -1
- package/models/components/toolresponse.d.ts +1 -0
- package/models/components/toolresponse.d.ts.map +1 -1
- package/models/components/toolresponse.js.map +1 -1
- package/models/components/toolresultdata.d.ts +52 -0
- package/models/components/toolresultdata.d.ts.map +1 -0
- package/models/components/toolresultdata.js +95 -0
- package/models/components/toolresultdata.js.map +1 -0
- package/models/operations/agentlist.d.ts +27 -0
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +27 -0
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +27 -0
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js.map +1 -1
- package/models/operations/channeltargetslist.d.ts +27 -0
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js.map +1 -1
- package/models/operations/conversationslist.d.ts +27 -0
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js.map +1 -1
- package/models/operations/custommessageslist.d.ts +27 -0
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/datasourceslist.d.ts +27 -0
- package/models/operations/datasourceslist.d.ts.map +1 -1
- package/models/operations/datasourceslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +27 -0
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js.map +1 -1
- package/models/operations/getsessiondatabysessionid.d.ts +29 -0
- package/models/operations/getsessiondatabysessionid.d.ts.map +1 -0
- package/models/operations/getsessiondatabysessionid.js +68 -0
- package/models/operations/getsessiondatabysessionid.js.map +1 -0
- package/models/operations/getsessiondatabysid.d.ts +31 -0
- package/models/operations/getsessiondatabysid.d.ts.map +1 -0
- package/models/operations/getsessiondatabysid.js +72 -0
- package/models/operations/getsessiondatabysid.js.map +1 -0
- package/models/operations/getsessiontoolcallresultbyid.d.ts +31 -0
- package/models/operations/getsessiontoolcallresultbyid.d.ts.map +1 -0
- package/models/operations/getsessiontoolcallresultbyid.js +72 -0
- package/models/operations/getsessiontoolcallresultbyid.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightsworkflowlist.d.ts +27 -0
- package/models/operations/insightsworkflowlist.d.ts.map +1 -1
- package/models/operations/insightsworkflowlist.js.map +1 -1
- package/models/operations/insighttoollist.d.ts +27 -0
- package/models/operations/insighttoollist.d.ts.map +1 -1
- package/models/operations/insighttoollist.js.map +1 -1
- package/models/operations/languagegroupslist.d.ts +27 -0
- package/models/operations/languagegroupslist.d.ts.map +1 -1
- package/models/operations/languagegroupslist.js.map +1 -1
- package/models/operations/postlistdashboard.d.ts +27 -0
- package/models/operations/postlistdashboard.d.ts.map +1 -1
- package/models/operations/postlistdashboard.js.map +1 -1
- package/models/operations/promptslist.d.ts +27 -0
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js.map +1 -1
- package/models/operations/servicelist.d.ts +27 -0
- package/models/operations/servicelist.d.ts.map +1 -1
- package/models/operations/servicelist.js.map +1 -1
- package/models/operations/sessionlabelslist.d.ts +27 -0
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js.map +1 -1
- package/models/operations/sessionslist.d.ts +27 -0
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js.map +1 -1
- package/models/operations/toollist.d.ts +27 -0
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js.map +1 -1
- package/openapi.json +1287 -203
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessiondebug.d.ts +18 -0
- package/sdk/sessiondebug.d.ts.map +1 -0
- package/sdk/sessiondebug.js +33 -0
- package/sdk/sessiondebug.js.map +1 -0
- package/src/funcs/sessionDebugGetSessionDataBySessionId.ts +142 -0
- package/src/funcs/sessionDebugGetSessionDataBySid.ts +148 -0
- package/src/funcs/sessionDebugGetSessionToolCallResultById.ts +148 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponse.ts +2 -1
- package/src/models/components/channeltargetresponse.ts +2 -1
- package/src/models/components/custommessageresponse.ts +2 -1
- package/src/models/components/datasourcedetailresponse.ts +6 -1
- package/src/models/components/datasourcemetadataresponse.ts +6 -1
- package/src/models/components/dialogmessage.ts +62 -0
- package/src/models/components/dialogrole.ts +31 -0
- package/src/models/components/dialogtoolcall.ts +139 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/languagegroupresponse.ts +7 -0
- package/src/models/components/promptresponse.ts +2 -1
- package/src/models/components/sessiondata.ts +95 -0
- package/src/models/components/sessionmessage.ts +100 -0
- package/src/models/components/sessiontranscriptionresponse.ts +4 -1
- package/src/models/components/testmessage.ts +7 -5
- package/src/models/components/tooldetailresponse.ts +1 -0
- package/src/models/components/toolresponse.ts +1 -0
- package/src/models/components/toolresultdata.ts +123 -0
- package/src/models/operations/agentlist.ts +27 -0
- package/src/models/operations/availabletargets.ts +27 -0
- package/src/models/operations/channelslist.ts +27 -0
- package/src/models/operations/channeltargetslist.ts +27 -0
- package/src/models/operations/conversationslist.ts +27 -0
- package/src/models/operations/custommessageslist.ts +27 -0
- package/src/models/operations/datasourceslist.ts +27 -0
- package/src/models/operations/eventslist.ts +27 -0
- package/src/models/operations/getsessiondatabysessionid.ts +77 -0
- package/src/models/operations/getsessiondatabysid.ts +81 -0
- package/src/models/operations/getsessiontoolcallresultbyid.ts +86 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/insightsworkflowlist.ts +27 -0
- package/src/models/operations/insighttoollist.ts +27 -0
- package/src/models/operations/languagegroupslist.ts +27 -0
- package/src/models/operations/postlistdashboard.ts +27 -0
- package/src/models/operations/promptslist.ts +27 -0
- package/src/models/operations/servicelist.ts +27 -0
- package/src/models/operations/sessionlabelslist.ts +27 -0
- package/src/models/operations/sessionslist.ts +27 -0
- package/src/models/operations/toollist.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sessiondebug.ts +55 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
# SessionDebug
|
|
2
|
+
(*sessionDebug*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [getSessionDataBySid](#getsessiondatabysid) - Get Session Data By Sid
|
|
9
|
+
* [getSessionDataBySessionId](#getsessiondatabysessionid) - Get Session Data By Session Id
|
|
10
|
+
* [getSessionToolCallResultById](#getsessiontoolcallresultbyid) - Get Session Tool Call Result By Id
|
|
11
|
+
|
|
12
|
+
## getSessionDataBySid
|
|
13
|
+
|
|
14
|
+
Get Session Data By Sid
|
|
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.sessionDebug.getSessionDataBySid({
|
|
27
|
+
channelManagerService: "<value>",
|
|
28
|
+
channelManagerSid: "<id>",
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// Handle the result
|
|
32
|
+
console.log(result);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
run();
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Standalone function
|
|
39
|
+
|
|
40
|
+
The standalone function version of this method:
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
44
|
+
import { sessionDebugGetSessionDataBySid } from "syllable-sdk/funcs/sessionDebugGetSessionDataBySid.js";
|
|
45
|
+
|
|
46
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
47
|
+
// You can create one instance of it to use across an application.
|
|
48
|
+
const syllableSDK = new SyllableSDKCore({
|
|
49
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
async function run() {
|
|
53
|
+
const res = await sessionDebugGetSessionDataBySid(syllableSDK, {
|
|
54
|
+
channelManagerService: "<value>",
|
|
55
|
+
channelManagerSid: "<id>",
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if (!res.ok) {
|
|
59
|
+
throw res.error;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const { value: result } = res;
|
|
63
|
+
|
|
64
|
+
// Handle the result
|
|
65
|
+
console.log(result);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
run();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type | Required | Description |
|
|
74
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
+
| `request` | [operations.GetSessionDataBySidRequest](../../models/operations/getsessiondatabysidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
76
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
+
| `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. |
|
|
78
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
+
|
|
80
|
+
### Response
|
|
81
|
+
|
|
82
|
+
**Promise\<[components.SessionData](../../models/components/sessiondata.md)\>**
|
|
83
|
+
|
|
84
|
+
### Errors
|
|
85
|
+
|
|
86
|
+
| Error Type | Status Code | Content Type |
|
|
87
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
88
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
89
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
90
|
+
|
|
91
|
+
## getSessionDataBySessionId
|
|
92
|
+
|
|
93
|
+
Get Session Data By Session Id
|
|
94
|
+
|
|
95
|
+
### Example Usage
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
99
|
+
|
|
100
|
+
const syllableSDK = new SyllableSDK({
|
|
101
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
async function run() {
|
|
105
|
+
const result = await syllableSDK.sessionDebug.getSessionDataBySessionId({
|
|
106
|
+
sessionId: 744354,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// Handle the result
|
|
110
|
+
console.log(result);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
run();
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Standalone function
|
|
117
|
+
|
|
118
|
+
The standalone function version of this method:
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
122
|
+
import { sessionDebugGetSessionDataBySessionId } from "syllable-sdk/funcs/sessionDebugGetSessionDataBySessionId.js";
|
|
123
|
+
|
|
124
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
125
|
+
// You can create one instance of it to use across an application.
|
|
126
|
+
const syllableSDK = new SyllableSDKCore({
|
|
127
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
async function run() {
|
|
131
|
+
const res = await sessionDebugGetSessionDataBySessionId(syllableSDK, {
|
|
132
|
+
sessionId: 744354,
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
if (!res.ok) {
|
|
136
|
+
throw res.error;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const { value: result } = res;
|
|
140
|
+
|
|
141
|
+
// Handle the result
|
|
142
|
+
console.log(result);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
run();
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Parameters
|
|
149
|
+
|
|
150
|
+
| Parameter | Type | Required | Description |
|
|
151
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
152
|
+
| `request` | [operations.GetSessionDataBySessionIdRequest](../../models/operations/getsessiondatabysessionidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
153
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
154
|
+
| `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. |
|
|
155
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
156
|
+
|
|
157
|
+
### Response
|
|
158
|
+
|
|
159
|
+
**Promise\<[components.SessionData](../../models/components/sessiondata.md)\>**
|
|
160
|
+
|
|
161
|
+
### Errors
|
|
162
|
+
|
|
163
|
+
| Error Type | Status Code | Content Type |
|
|
164
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
165
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
166
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
167
|
+
|
|
168
|
+
## getSessionToolCallResultById
|
|
169
|
+
|
|
170
|
+
Get Session Tool Call Result By Id
|
|
171
|
+
|
|
172
|
+
### Example Usage
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
176
|
+
|
|
177
|
+
const syllableSDK = new SyllableSDK({
|
|
178
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
async function run() {
|
|
182
|
+
const result = await syllableSDK.sessionDebug.getSessionToolCallResultById({
|
|
183
|
+
sessionId: 187795,
|
|
184
|
+
toolCallId: "<id>",
|
|
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 { sessionDebugGetSessionToolCallResultById } from "syllable-sdk/funcs/sessionDebugGetSessionToolCallResultById.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 sessionDebugGetSessionToolCallResultById(syllableSDK, {
|
|
210
|
+
sessionId: 187795,
|
|
211
|
+
toolCallId: "<id>",
|
|
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` | [operations.GetSessionToolCallResultByIdRequest](../../models/operations/getsessiontoolcallresultbyidrequest.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.ToolResultData](../../models/components/toolresultdata.md)\>**
|
|
239
|
+
|
|
240
|
+
### Errors
|
|
241
|
+
|
|
242
|
+
| Error Type | Status Code | Content Type |
|
|
243
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
244
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
245
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
Operations related to labeling sessions with evaluations of quality and descriptions of issues the user encountered or other details.
|
|
6
|
+
Operations related to labeling sessions with evaluations of quality and descriptions of issues the user encountered or other details. For more information, see [Console docs](https://docs.syllable.ai/workspaces/Sessions).
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -191,7 +191,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
191
191
|
});
|
|
192
192
|
|
|
193
193
|
async function run() {
|
|
194
|
-
const result = await syllableSDK.sessionLabels.list({
|
|
194
|
+
const result = await syllableSDK.sessionLabels.list({
|
|
195
|
+
page: 0,
|
|
196
|
+
searchFields: [
|
|
197
|
+
"issue_categories",
|
|
198
|
+
],
|
|
199
|
+
searchFieldValues: [
|
|
200
|
+
"Some Object Name",
|
|
201
|
+
],
|
|
202
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
203
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
204
|
+
});
|
|
195
205
|
|
|
196
206
|
// Handle the result
|
|
197
207
|
console.log(result);
|
|
@@ -215,7 +225,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
215
225
|
});
|
|
216
226
|
|
|
217
227
|
async function run() {
|
|
218
|
-
const res = await sessionLabelsList(syllableSDK, {
|
|
228
|
+
const res = await sessionLabelsList(syllableSDK, {
|
|
229
|
+
page: 0,
|
|
230
|
+
searchFields: [
|
|
231
|
+
"issue_categories",
|
|
232
|
+
],
|
|
233
|
+
searchFieldValues: [
|
|
234
|
+
"Some Object Name",
|
|
235
|
+
],
|
|
236
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
237
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
238
|
+
});
|
|
219
239
|
|
|
220
240
|
if (!res.ok) {
|
|
221
241
|
throw res.error;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
Operations related to sessions. A session is a building block of a conversation.
|
|
6
|
+
Operations related to sessions. A session is a building block of a conversation. For more information, see [Console docs](https://docs.syllable.ai/workspaces/Sessions).
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -26,7 +26,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function run() {
|
|
29
|
-
const result = await syllableSDK.sessions.list({
|
|
29
|
+
const result = await syllableSDK.sessions.list({
|
|
30
|
+
page: 0,
|
|
31
|
+
searchFields: [
|
|
32
|
+
"target",
|
|
33
|
+
],
|
|
34
|
+
searchFieldValues: [
|
|
35
|
+
"Some Object Name",
|
|
36
|
+
],
|
|
37
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
38
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
39
|
+
});
|
|
30
40
|
|
|
31
41
|
// Handle the result
|
|
32
42
|
console.log(result);
|
|
@@ -50,7 +60,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
50
60
|
});
|
|
51
61
|
|
|
52
62
|
async function run() {
|
|
53
|
-
const res = await sessionsList(syllableSDK, {
|
|
63
|
+
const res = await sessionsList(syllableSDK, {
|
|
64
|
+
page: 0,
|
|
65
|
+
searchFields: [
|
|
66
|
+
"target",
|
|
67
|
+
],
|
|
68
|
+
searchFieldValues: [
|
|
69
|
+
"Some Object Name",
|
|
70
|
+
],
|
|
71
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
72
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
73
|
+
});
|
|
54
74
|
|
|
55
75
|
if (!res.ok) {
|
|
56
76
|
throw res.error;
|
|
@@ -27,7 +27,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.insights.tools.list({
|
|
30
|
+
const result = await syllableSDK.insights.tools.list({
|
|
31
|
+
page: 0,
|
|
32
|
+
searchFields: [
|
|
33
|
+
"name",
|
|
34
|
+
],
|
|
35
|
+
searchFieldValues: [
|
|
36
|
+
"Some Object Name",
|
|
37
|
+
],
|
|
38
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
39
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
40
|
+
});
|
|
31
41
|
|
|
32
42
|
// Handle the result
|
|
33
43
|
console.log(result);
|
|
@@ -51,7 +61,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
61
|
});
|
|
52
62
|
|
|
53
63
|
async function run() {
|
|
54
|
-
const res = await insightsToolsList(syllableSDK, {
|
|
64
|
+
const res = await insightsToolsList(syllableSDK, {
|
|
65
|
+
page: 0,
|
|
66
|
+
searchFields: [
|
|
67
|
+
"name",
|
|
68
|
+
],
|
|
69
|
+
searchFieldValues: [
|
|
70
|
+
"Some Object Name",
|
|
71
|
+
],
|
|
72
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
73
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
74
|
+
});
|
|
55
75
|
|
|
56
76
|
if (!res.ok) {
|
|
57
77
|
throw res.error;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
Operations related to channel target configuration. A channel target links a channel to an agent, allowing users to communicate with the agent through that channel.
|
|
6
|
+
Operations related to channel target configuration. A channel target links a channel to an agent, allowing users to communicate with the agent through that channel. For more information, see [Console docs](https://docs.syllable.ai/Resources/Channels).
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -27,7 +27,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.channels.targets.availableTargets({
|
|
30
|
+
const result = await syllableSDK.channels.targets.availableTargets({
|
|
31
|
+
page: 0,
|
|
32
|
+
searchFields: [
|
|
33
|
+
"channel_name",
|
|
34
|
+
],
|
|
35
|
+
searchFieldValues: [
|
|
36
|
+
"Some Object Name",
|
|
37
|
+
],
|
|
38
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
39
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
40
|
+
});
|
|
31
41
|
|
|
32
42
|
// Handle the result
|
|
33
43
|
console.log(result);
|
|
@@ -51,7 +61,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
61
|
});
|
|
52
62
|
|
|
53
63
|
async function run() {
|
|
54
|
-
const res = await channelsTargetsAvailableTargets(syllableSDK, {
|
|
64
|
+
const res = await channelsTargetsAvailableTargets(syllableSDK, {
|
|
65
|
+
page: 0,
|
|
66
|
+
searchFields: [
|
|
67
|
+
"channel_name",
|
|
68
|
+
],
|
|
69
|
+
searchFieldValues: [
|
|
70
|
+
"Some Object Name",
|
|
71
|
+
],
|
|
72
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
73
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
74
|
+
});
|
|
55
75
|
|
|
56
76
|
if (!res.ok) {
|
|
57
77
|
throw res.error;
|
|
@@ -100,7 +120,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
100
120
|
});
|
|
101
121
|
|
|
102
122
|
async function run() {
|
|
103
|
-
const result = await syllableSDK.channels.targets.list({
|
|
123
|
+
const result = await syllableSDK.channels.targets.list({
|
|
124
|
+
page: 0,
|
|
125
|
+
searchFields: [
|
|
126
|
+
"fallback_target",
|
|
127
|
+
],
|
|
128
|
+
searchFieldValues: [
|
|
129
|
+
"Some Object Name",
|
|
130
|
+
],
|
|
131
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
132
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
133
|
+
});
|
|
104
134
|
|
|
105
135
|
// Handle the result
|
|
106
136
|
console.log(result);
|
|
@@ -124,7 +154,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
124
154
|
});
|
|
125
155
|
|
|
126
156
|
async function run() {
|
|
127
|
-
const res = await channelsTargetsList(syllableSDK, {
|
|
157
|
+
const res = await channelsTargetsList(syllableSDK, {
|
|
158
|
+
page: 0,
|
|
159
|
+
searchFields: [
|
|
160
|
+
"fallback_target",
|
|
161
|
+
],
|
|
162
|
+
searchFieldValues: [
|
|
163
|
+
"Some Object Name",
|
|
164
|
+
],
|
|
165
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
166
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
167
|
+
});
|
|
128
168
|
|
|
129
169
|
if (!res.ok) {
|
|
130
170
|
throw res.error;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
Operations related to tool configuration. A tool is a function that an agent can call to perform actions like accessing databases, making API calls, or processing data. For an agent to have access to a tool, the prompt associated with that agent should be linked to the tool and include instructions to use it.
|
|
6
|
+
Operations related to tool configuration. A tool is a function that an agent can call to perform actions like accessing databases, making API calls, or processing data. For an agent to have access to a tool, the prompt associated with that agent should be linked to the tool and include instructions to use it. For more information, see [Console docs](https://docs.syllable.ai/Resources/Tools).
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -27,7 +27,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.tools.list({
|
|
30
|
+
const result = await syllableSDK.tools.list({
|
|
31
|
+
page: 0,
|
|
32
|
+
searchFields: [
|
|
33
|
+
"name",
|
|
34
|
+
],
|
|
35
|
+
searchFieldValues: [
|
|
36
|
+
"Some Object Name",
|
|
37
|
+
],
|
|
38
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
39
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
40
|
+
});
|
|
31
41
|
|
|
32
42
|
// Handle the result
|
|
33
43
|
console.log(result);
|
|
@@ -51,7 +61,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
61
|
});
|
|
52
62
|
|
|
53
63
|
async function run() {
|
|
54
|
-
const res = await toolsList(syllableSDK, {
|
|
64
|
+
const res = await toolsList(syllableSDK, {
|
|
65
|
+
page: 0,
|
|
66
|
+
searchFields: [
|
|
67
|
+
"name",
|
|
68
|
+
],
|
|
69
|
+
searchFieldValues: [
|
|
70
|
+
"Some Object Name",
|
|
71
|
+
],
|
|
72
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
73
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
74
|
+
});
|
|
55
75
|
|
|
56
76
|
if (!res.ok) {
|
|
57
77
|
throw res.error;
|
package/docs/sdks/v1/README.md
CHANGED
|
@@ -29,7 +29,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
-
const result = await syllableSDK.v1.postListDashboard({
|
|
32
|
+
const result = await syllableSDK.v1.postListDashboard({
|
|
33
|
+
page: 0,
|
|
34
|
+
searchFields: [
|
|
35
|
+
"name",
|
|
36
|
+
],
|
|
37
|
+
searchFieldValues: [
|
|
38
|
+
"Some Object Name",
|
|
39
|
+
],
|
|
40
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
41
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
42
|
+
});
|
|
33
43
|
|
|
34
44
|
// Handle the result
|
|
35
45
|
console.log(result);
|
|
@@ -53,7 +63,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
53
63
|
});
|
|
54
64
|
|
|
55
65
|
async function run() {
|
|
56
|
-
const res = await v1PostListDashboard(syllableSDK, {
|
|
66
|
+
const res = await v1PostListDashboard(syllableSDK, {
|
|
67
|
+
page: 0,
|
|
68
|
+
searchFields: [
|
|
69
|
+
"name",
|
|
70
|
+
],
|
|
71
|
+
searchFieldValues: [
|
|
72
|
+
"Some Object Name",
|
|
73
|
+
],
|
|
74
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
75
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
76
|
+
});
|
|
57
77
|
|
|
58
78
|
if (!res.ok) {
|
|
59
79
|
throw res.error;
|
|
@@ -27,7 +27,17 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.insights.workflows.list({
|
|
30
|
+
const result = await syllableSDK.insights.workflows.list({
|
|
31
|
+
page: 0,
|
|
32
|
+
searchFields: [
|
|
33
|
+
"name",
|
|
34
|
+
],
|
|
35
|
+
searchFieldValues: [
|
|
36
|
+
"Some Object Name",
|
|
37
|
+
],
|
|
38
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
39
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
40
|
+
});
|
|
31
41
|
|
|
32
42
|
// Handle the result
|
|
33
43
|
console.log(result);
|
|
@@ -51,7 +61,17 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
61
|
});
|
|
52
62
|
|
|
53
63
|
async function run() {
|
|
54
|
-
const res = await insightsWorkflowsList(syllableSDK, {
|
|
64
|
+
const res = await insightsWorkflowsList(syllableSDK, {
|
|
65
|
+
page: 0,
|
|
66
|
+
searchFields: [
|
|
67
|
+
"name",
|
|
68
|
+
],
|
|
69
|
+
searchFieldValues: [
|
|
70
|
+
"Some Object Name",
|
|
71
|
+
],
|
|
72
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
73
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
74
|
+
});
|
|
55
75
|
|
|
56
76
|
if (!res.ok) {
|
|
57
77
|
throw res.error;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 Session Data By Session Id
|
|
12
|
+
*/
|
|
13
|
+
export declare function sessionDebugGetSessionDataBySessionId(client: SyllableSDKCore, request: operations.GetSessionDataBySessionIdRequest, options?: RequestOptions): Promise<Result<components.SessionData, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=sessionDebugGetSessionDataBySessionId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionDebugGetSessionDataBySessionId.d.ts","sourceRoot":"","sources":["../src/funcs/sessionDebugGetSessionDataBySessionId.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,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;;GAEG;AACH,wBAAsB,qCAAqC,CACzD,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,WAAW,EACpB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAgGA"}
|