mavenagi 1.2.4 → 1.2.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.
- package/Client.js +2 -2
- package/README.md +390 -0
- package/api/resources/actions/client/Client.d.ts +11 -1
- package/api/resources/actions/client/Client.js +11 -1
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
- package/api/resources/agents/client/Client.d.ts +2 -2
- package/api/resources/agents/client/Client.js +5 -5
- package/api/resources/agents/client/index.d.ts +1 -0
- package/api/resources/agents/client/index.js +15 -0
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/agents/client/requests/index.js +2 -0
- package/api/resources/agents/types/Agent.d.ts +8 -0
- package/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/api/resources/agents/types/index.d.ts +1 -1
- package/api/resources/agents/types/index.js +1 -1
- package/api/resources/analytics/client/Client.d.ts +10 -0
- package/api/resources/analytics/client/Client.js +83 -0
- package/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/api/resources/commons/types/AppUserResponse.d.ts +12 -0
- package/api/resources/commons/types/ConversationSummary.d.ts +4 -0
- package/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
- package/api/resources/commons/types/UserDataWithReference.js +3 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/conversation/client/Client.d.ts +18 -1
- package/api/resources/conversation/client/Client.js +91 -1
- package/api/resources/events/client/Client.d.ts +10 -0
- package/api/resources/events/client/Client.js +83 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -1
- package/api/resources/knowledge/client/Client.js +104 -1
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/dist/Client.js +2 -2
- package/dist/api/resources/actions/client/Client.d.ts +11 -1
- package/dist/api/resources/actions/client/Client.js +11 -1
- package/dist/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -1
- package/dist/api/resources/agentCapabilities/types/ActionCapability.d.ts +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/client/Client.js +5 -5
- package/dist/api/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/agents/client/index.js +15 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.d.ts +27 -0
- package/dist/api/resources/agents/client/requests/AgentPatchRequest.js +3 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/agents/types/Agent.d.ts +8 -0
- package/dist/api/resources/agents/types/AgentPrompting.d.ts +23 -0
- package/dist/api/resources/agents/types/AgentPrompting.js +3 -0
- package/dist/api/resources/agents/types/index.d.ts +1 -1
- package/dist/api/resources/agents/types/index.js +1 -1
- package/dist/api/resources/analytics/client/Client.d.ts +10 -0
- package/dist/api/resources/analytics/client/Client.js +83 -0
- package/dist/api/resources/analytics/types/ConversationBarChartRequest.d.ts +20 -0
- package/dist/api/resources/analytics/types/ConversationDateHistogramRequest.d.ts +13 -1
- package/dist/api/resources/analytics/types/ConversationPieChartRequest.d.ts +13 -1
- package/dist/api/resources/commons/types/ActionResponse.d.ts +7 -0
- package/dist/api/resources/commons/types/AppUserResponse.d.ts +12 -0
- package/dist/api/resources/commons/types/ConversationSummary.d.ts +4 -0
- package/dist/api/resources/commons/types/SimulationContext.d.ts +6 -0
- package/dist/api/resources/commons/types/UserDataWithReference.d.ts +5 -0
- package/dist/api/resources/commons/types/UserDataWithReference.js +3 -0
- package/dist/api/resources/commons/types/index.d.ts +1 -0
- package/dist/api/resources/commons/types/index.js +1 -0
- package/dist/api/resources/conversation/client/Client.d.ts +18 -1
- package/dist/api/resources/conversation/client/Client.js +91 -1
- package/dist/api/resources/events/client/Client.d.ts +10 -0
- package/dist/api/resources/events/client/Client.js +83 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/knowledge/client/Client.d.ts +32 -1
- package/dist/api/resources/knowledge/client/Client.js +104 -1
- package/dist/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +11 -1
- package/dist/api/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -2
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseField.js +1 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +10 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseRefreshRequest.js +3 -0
- package/dist/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +29 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.d.ts +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeBaseType.js +8 -1
- package/dist/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -0
- package/dist/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/dist/api/resources/knowledge/types/index.d.ts +1 -0
- package/dist/api/resources/knowledge/types/index.js +1 -0
- package/dist/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +4 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/dist/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/dist/serialization/resources/agents/types/Agent.js +3 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/dist/serialization/resources/agents/types/index.d.ts +1 -1
- package/dist/serialization/resources/agents/types/index.js +1 -1
- package/dist/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
- package/dist/serialization/resources/commons/types/AppUserResponse.js +2 -0
- package/dist/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
- package/dist/serialization/resources/commons/types/ConversationSummary.js +2 -0
- package/dist/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/dist/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/dist/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
- package/dist/serialization/resources/commons/types/UserDataWithReference.js +45 -0
- package/dist/serialization/resources/commons/types/index.d.ts +1 -0
- package/dist/serialization/resources/commons/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/dist/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/dist/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/dist/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/dist/serialization/resources/knowledge/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +325 -4
- package/serialization/resources/agentCapabilities/types/ActionCapability.js +1 -1
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +4 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.d.ts +21 -0
- package/serialization/resources/agents/client/requests/AgentPatchRequest.js +53 -0
- package/serialization/resources/agents/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/client/requests/index.js +5 -0
- package/serialization/resources/agents/types/Agent.d.ts +3 -0
- package/serialization/resources/agents/types/Agent.js +3 -0
- package/serialization/resources/agents/types/AgentPrompting.d.ts +14 -0
- package/serialization/resources/agents/types/AgentPrompting.js +46 -0
- package/serialization/resources/agents/types/index.d.ts +1 -1
- package/serialization/resources/agents/types/index.js +1 -1
- package/serialization/resources/commons/types/AppUserResponse.d.ts +2 -0
- package/serialization/resources/commons/types/AppUserResponse.js +2 -0
- package/serialization/resources/commons/types/ConversationSummary.d.ts +2 -0
- package/serialization/resources/commons/types/ConversationSummary.js +2 -0
- package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
- package/serialization/resources/commons/types/SimulationContext.js +1 -0
- package/serialization/resources/commons/types/UserDataWithReference.d.ts +11 -0
- package/serialization/resources/commons/types/UserDataWithReference.js +45 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.d.ts +0 -1
- package/serialization/resources/knowledge/types/BaseKnowledgeDocument.js +0 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseField.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseFilter.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseRefreshRequest.d.ts +9 -0
- package/serialization/resources/{agents/types/AgentPatchRequest.js → knowledge/types/KnowledgeBaseRefreshRequest.js} +3 -8
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +4 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseType.d.ts +1 -1
- package/serialization/resources/knowledge/types/KnowledgeBaseType.js +1 -1
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +1 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/api/resources/agents/types/AgentPatchRequest.d.ts +0 -11
- package/dist/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- package/serialization/resources/agents/types/AgentPatchRequest.d.ts +0 -14
- /package/api/resources/agents/{types → client/requests}/AgentPatchRequest.js +0 -0
- /package/{dist/api/resources/agents/types/AgentPatchRequest.js → api/resources/agents/types/AgentPrompting.js} +0 -0
package/reference.md
CHANGED
|
@@ -238,7 +238,17 @@ All other fields will overwrite the existing value on the action only if provide
|
|
|
238
238
|
<dd>
|
|
239
239
|
|
|
240
240
|
```typescript
|
|
241
|
-
await client.actions.patch("
|
|
241
|
+
await client.actions.patch("get-balance", {
|
|
242
|
+
instructions: "Use this action when the user asks about their account balance or remaining credits.",
|
|
243
|
+
llmInclusionStatus: "WHEN_RELEVANT",
|
|
244
|
+
segmentId: {
|
|
245
|
+
referenceId: "premium-users",
|
|
246
|
+
appId: "my-billing-system",
|
|
247
|
+
organizationId: "acme",
|
|
248
|
+
agentId: "support",
|
|
249
|
+
type: "SEGMENT",
|
|
250
|
+
},
|
|
251
|
+
});
|
|
242
252
|
```
|
|
243
253
|
|
|
244
254
|
</dd>
|
|
@@ -927,7 +937,7 @@ This endpoint requires additional permissions. Contact support to request access
|
|
|
927
937
|
<dd>
|
|
928
938
|
|
|
929
939
|
```typescript
|
|
930
|
-
await client.agents.patch("organizationReferenceId", "agentReferenceId"
|
|
940
|
+
await client.agents.patch("organizationReferenceId", "agentReferenceId");
|
|
931
941
|
```
|
|
932
942
|
|
|
933
943
|
</dd>
|
|
@@ -1224,6 +1234,94 @@ await client.analytics.getConversationChart({
|
|
|
1224
1234
|
</dl>
|
|
1225
1235
|
</details>
|
|
1226
1236
|
|
|
1237
|
+
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">exportConversationTable</a>({ ...params }) -> core.BinaryResponse</code></summary>
|
|
1238
|
+
<dl>
|
|
1239
|
+
<dd>
|
|
1240
|
+
|
|
1241
|
+
#### 📝 Description
|
|
1242
|
+
|
|
1243
|
+
<dl>
|
|
1244
|
+
<dd>
|
|
1245
|
+
|
|
1246
|
+
<dl>
|
|
1247
|
+
<dd>
|
|
1248
|
+
|
|
1249
|
+
Export the conversation analytics table to a CSV file.
|
|
1250
|
+
|
|
1251
|
+
This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
|
|
1252
|
+
|
|
1253
|
+
</dd>
|
|
1254
|
+
</dl>
|
|
1255
|
+
</dd>
|
|
1256
|
+
</dl>
|
|
1257
|
+
|
|
1258
|
+
#### 🔌 Usage
|
|
1259
|
+
|
|
1260
|
+
<dl>
|
|
1261
|
+
<dd>
|
|
1262
|
+
|
|
1263
|
+
<dl>
|
|
1264
|
+
<dd>
|
|
1265
|
+
|
|
1266
|
+
```typescript
|
|
1267
|
+
await client.analytics.exportConversationTable({
|
|
1268
|
+
fieldGroupings: [
|
|
1269
|
+
{
|
|
1270
|
+
field: "Category",
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
field: "Category",
|
|
1274
|
+
},
|
|
1275
|
+
],
|
|
1276
|
+
columnDefinitions: [
|
|
1277
|
+
{
|
|
1278
|
+
metric: {
|
|
1279
|
+
type: "count",
|
|
1280
|
+
},
|
|
1281
|
+
header: "header",
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
metric: {
|
|
1285
|
+
type: "count",
|
|
1286
|
+
},
|
|
1287
|
+
header: "header",
|
|
1288
|
+
},
|
|
1289
|
+
],
|
|
1290
|
+
});
|
|
1291
|
+
```
|
|
1292
|
+
|
|
1293
|
+
</dd>
|
|
1294
|
+
</dl>
|
|
1295
|
+
</dd>
|
|
1296
|
+
</dl>
|
|
1297
|
+
|
|
1298
|
+
#### ⚙️ Parameters
|
|
1299
|
+
|
|
1300
|
+
<dl>
|
|
1301
|
+
<dd>
|
|
1302
|
+
|
|
1303
|
+
<dl>
|
|
1304
|
+
<dd>
|
|
1305
|
+
|
|
1306
|
+
**request:** `MavenAGI.ConversationTableRequest`
|
|
1307
|
+
|
|
1308
|
+
</dd>
|
|
1309
|
+
</dl>
|
|
1310
|
+
|
|
1311
|
+
<dl>
|
|
1312
|
+
<dd>
|
|
1313
|
+
|
|
1314
|
+
**requestOptions:** `Analytics.RequestOptions`
|
|
1315
|
+
|
|
1316
|
+
</dd>
|
|
1317
|
+
</dl>
|
|
1318
|
+
</dd>
|
|
1319
|
+
</dl>
|
|
1320
|
+
|
|
1321
|
+
</dd>
|
|
1322
|
+
</dl>
|
|
1323
|
+
</details>
|
|
1324
|
+
|
|
1227
1325
|
<details><summary><code>client.analytics.<a href="/src/api/resources/analytics/client/Client.ts">getFeedbackTable</a>({ ...params }) -> MavenAGI.FeedbackTableResponse</code></summary>
|
|
1228
1326
|
<dl>
|
|
1229
1327
|
<dd>
|
|
@@ -2591,7 +2689,11 @@ await client.conversation.createFeedback({
|
|
|
2591
2689
|
<dl>
|
|
2592
2690
|
<dd>
|
|
2593
2691
|
|
|
2594
|
-
Submit a filled out action form
|
|
2692
|
+
Submit a filled out action form.
|
|
2693
|
+
Action forms can not be submitted more than once, attempting to do so will result in an error.
|
|
2694
|
+
|
|
2695
|
+
Additionally, form submission is only allowed when the form is the last message in the conversation.
|
|
2696
|
+
Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
|
|
2595
2697
|
|
|
2596
2698
|
</dd>
|
|
2597
2699
|
</dl>
|
|
@@ -2877,6 +2979,74 @@ await client.conversation.search({});
|
|
|
2877
2979
|
</dl>
|
|
2878
2980
|
</details>
|
|
2879
2981
|
|
|
2982
|
+
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">export</a>({ ...params }) -> core.BinaryResponse</code></summary>
|
|
2983
|
+
<dl>
|
|
2984
|
+
<dd>
|
|
2985
|
+
|
|
2986
|
+
#### 📝 Description
|
|
2987
|
+
|
|
2988
|
+
<dl>
|
|
2989
|
+
<dd>
|
|
2990
|
+
|
|
2991
|
+
<dl>
|
|
2992
|
+
<dd>
|
|
2993
|
+
|
|
2994
|
+
Export conversations to a CSV file.
|
|
2995
|
+
|
|
2996
|
+
This will output a summary of each conversation that matches the supplied filter. A maximum of 10,000 conversations can be exported at a time.
|
|
2997
|
+
|
|
2998
|
+
For most use cases it is recommended to use the `search` API instead and convert the JSON response to your desired format.
|
|
2999
|
+
The CSV format may change over time and should not be relied upon by code consumers.
|
|
3000
|
+
|
|
3001
|
+
</dd>
|
|
3002
|
+
</dl>
|
|
3003
|
+
</dd>
|
|
3004
|
+
</dl>
|
|
3005
|
+
|
|
3006
|
+
#### 🔌 Usage
|
|
3007
|
+
|
|
3008
|
+
<dl>
|
|
3009
|
+
<dd>
|
|
3010
|
+
|
|
3011
|
+
<dl>
|
|
3012
|
+
<dd>
|
|
3013
|
+
|
|
3014
|
+
```typescript
|
|
3015
|
+
await client.conversation.export({});
|
|
3016
|
+
```
|
|
3017
|
+
|
|
3018
|
+
</dd>
|
|
3019
|
+
</dl>
|
|
3020
|
+
</dd>
|
|
3021
|
+
</dl>
|
|
3022
|
+
|
|
3023
|
+
#### ⚙️ Parameters
|
|
3024
|
+
|
|
3025
|
+
<dl>
|
|
3026
|
+
<dd>
|
|
3027
|
+
|
|
3028
|
+
<dl>
|
|
3029
|
+
<dd>
|
|
3030
|
+
|
|
3031
|
+
**request:** `MavenAGI.ConversationsSearchRequest`
|
|
3032
|
+
|
|
3033
|
+
</dd>
|
|
3034
|
+
</dl>
|
|
3035
|
+
|
|
3036
|
+
<dl>
|
|
3037
|
+
<dd>
|
|
3038
|
+
|
|
3039
|
+
**requestOptions:** `Conversation.RequestOptions`
|
|
3040
|
+
|
|
3041
|
+
</dd>
|
|
3042
|
+
</dl>
|
|
3043
|
+
</dd>
|
|
3044
|
+
</dl>
|
|
3045
|
+
|
|
3046
|
+
</dd>
|
|
3047
|
+
</dl>
|
|
3048
|
+
</details>
|
|
3049
|
+
|
|
2880
3050
|
<details><summary><code>client.conversation.<a href="/src/api/resources/conversation/client/Client.ts">deliverMessage</a>({ ...params }) -> MavenAGI.DeliverMessageResponse</code></summary>
|
|
2881
3051
|
<dl>
|
|
2882
3052
|
<dd>
|
|
@@ -3173,6 +3343,71 @@ await client.events.get("eventId", {
|
|
|
3173
3343
|
</dl>
|
|
3174
3344
|
</details>
|
|
3175
3345
|
|
|
3346
|
+
<details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">export</a>({ ...params }) -> core.BinaryResponse</code></summary>
|
|
3347
|
+
<dl>
|
|
3348
|
+
<dd>
|
|
3349
|
+
|
|
3350
|
+
#### 📝 Description
|
|
3351
|
+
|
|
3352
|
+
<dl>
|
|
3353
|
+
<dd>
|
|
3354
|
+
|
|
3355
|
+
<dl>
|
|
3356
|
+
<dd>
|
|
3357
|
+
|
|
3358
|
+
Export events to a CSV file.
|
|
3359
|
+
|
|
3360
|
+
This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
|
|
3361
|
+
|
|
3362
|
+
</dd>
|
|
3363
|
+
</dl>
|
|
3364
|
+
</dd>
|
|
3365
|
+
</dl>
|
|
3366
|
+
|
|
3367
|
+
#### 🔌 Usage
|
|
3368
|
+
|
|
3369
|
+
<dl>
|
|
3370
|
+
<dd>
|
|
3371
|
+
|
|
3372
|
+
<dl>
|
|
3373
|
+
<dd>
|
|
3374
|
+
|
|
3375
|
+
```typescript
|
|
3376
|
+
await client.events.export({});
|
|
3377
|
+
```
|
|
3378
|
+
|
|
3379
|
+
</dd>
|
|
3380
|
+
</dl>
|
|
3381
|
+
</dd>
|
|
3382
|
+
</dl>
|
|
3383
|
+
|
|
3384
|
+
#### ⚙️ Parameters
|
|
3385
|
+
|
|
3386
|
+
<dl>
|
|
3387
|
+
<dd>
|
|
3388
|
+
|
|
3389
|
+
<dl>
|
|
3390
|
+
<dd>
|
|
3391
|
+
|
|
3392
|
+
**request:** `MavenAGI.EventsSearchRequest`
|
|
3393
|
+
|
|
3394
|
+
</dd>
|
|
3395
|
+
</dl>
|
|
3396
|
+
|
|
3397
|
+
<dl>
|
|
3398
|
+
<dd>
|
|
3399
|
+
|
|
3400
|
+
**requestOptions:** `Events.RequestOptions`
|
|
3401
|
+
|
|
3402
|
+
</dd>
|
|
3403
|
+
</dl>
|
|
3404
|
+
</dd>
|
|
3405
|
+
</dl>
|
|
3406
|
+
|
|
3407
|
+
</dd>
|
|
3408
|
+
</dl>
|
|
3409
|
+
</details>
|
|
3410
|
+
|
|
3176
3411
|
## Inbox
|
|
3177
3412
|
|
|
3178
3413
|
<details><summary><code>client.inbox.<a href="/src/api/resources/inbox/client/Client.ts">search</a>({ ...params }) -> MavenAGI.InboxSearchResponse</code></summary>
|
|
@@ -3735,6 +3970,82 @@ await client.knowledge.getKnowledgeBase("help-center");
|
|
|
3735
3970
|
</dl>
|
|
3736
3971
|
</details>
|
|
3737
3972
|
|
|
3973
|
+
<details><summary><code>client.knowledge.<a href="/src/api/resources/knowledge/client/Client.ts">refreshKnowledgeBase</a>(knowledgeBaseReferenceId, { ...params }) -> void</code></summary>
|
|
3974
|
+
<dl>
|
|
3975
|
+
<dd>
|
|
3976
|
+
|
|
3977
|
+
#### 📝 Description
|
|
3978
|
+
|
|
3979
|
+
<dl>
|
|
3980
|
+
<dd>
|
|
3981
|
+
|
|
3982
|
+
<dl>
|
|
3983
|
+
<dd>
|
|
3984
|
+
|
|
3985
|
+
Request that a knowledge base refresh itself.
|
|
3986
|
+
|
|
3987
|
+
Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
|
|
3988
|
+
They can also be refreshed on demand by calling this endpoint.
|
|
3989
|
+
|
|
3990
|
+
</dd>
|
|
3991
|
+
</dl>
|
|
3992
|
+
</dd>
|
|
3993
|
+
</dl>
|
|
3994
|
+
|
|
3995
|
+
#### 🔌 Usage
|
|
3996
|
+
|
|
3997
|
+
<dl>
|
|
3998
|
+
<dd>
|
|
3999
|
+
|
|
4000
|
+
<dl>
|
|
4001
|
+
<dd>
|
|
4002
|
+
|
|
4003
|
+
```typescript
|
|
4004
|
+
await client.knowledge.refreshKnowledgeBase("help-center", {
|
|
4005
|
+
appId: "readme",
|
|
4006
|
+
});
|
|
4007
|
+
```
|
|
4008
|
+
|
|
4009
|
+
</dd>
|
|
4010
|
+
</dl>
|
|
4011
|
+
</dd>
|
|
4012
|
+
</dl>
|
|
4013
|
+
|
|
4014
|
+
#### ⚙️ Parameters
|
|
4015
|
+
|
|
4016
|
+
<dl>
|
|
4017
|
+
<dd>
|
|
4018
|
+
|
|
4019
|
+
<dl>
|
|
4020
|
+
<dd>
|
|
4021
|
+
|
|
4022
|
+
**knowledgeBaseReferenceId:** `string` — The reference ID of the knowledge base to refresh. All other entity ID fields are inferred from the request.
|
|
4023
|
+
|
|
4024
|
+
</dd>
|
|
4025
|
+
</dl>
|
|
4026
|
+
|
|
4027
|
+
<dl>
|
|
4028
|
+
<dd>
|
|
4029
|
+
|
|
4030
|
+
**request:** `MavenAGI.KnowledgeBaseRefreshRequest`
|
|
4031
|
+
|
|
4032
|
+
</dd>
|
|
4033
|
+
</dl>
|
|
4034
|
+
|
|
4035
|
+
<dl>
|
|
4036
|
+
<dd>
|
|
4037
|
+
|
|
4038
|
+
**requestOptions:** `Knowledge.RequestOptions`
|
|
4039
|
+
|
|
4040
|
+
</dd>
|
|
4041
|
+
</dl>
|
|
4042
|
+
</dd>
|
|
4043
|
+
</dl>
|
|
4044
|
+
|
|
4045
|
+
</dd>
|
|
4046
|
+
</dl>
|
|
4047
|
+
</details>
|
|
4048
|
+
|
|
3738
4049
|
<details><summary><code>client.knowledge.<a href="/src/api/resources/knowledge/client/Client.ts">patchKnowledgeBase</a>(knowledgeBaseReferenceId, { ...params }) -> MavenAGI.KnowledgeBaseResponse</code></summary>
|
|
3739
4050
|
<dl>
|
|
3740
4051
|
<dd>
|
|
@@ -3766,7 +4077,17 @@ All other fields will overwrite the existing value on the knowledge base only if
|
|
|
3766
4077
|
<dd>
|
|
3767
4078
|
|
|
3768
4079
|
```typescript
|
|
3769
|
-
await client.knowledge.patchKnowledgeBase("
|
|
4080
|
+
await client.knowledge.patchKnowledgeBase("help-center", {
|
|
4081
|
+
name: "Updated Help Center",
|
|
4082
|
+
tags: new Set(["tag1", "tag2", "tag3"]),
|
|
4083
|
+
segmentId: {
|
|
4084
|
+
referenceId: "premium-users",
|
|
4085
|
+
appId: "readme",
|
|
4086
|
+
organizationId: "acme",
|
|
4087
|
+
agentId: "support",
|
|
4088
|
+
type: "SEGMENT",
|
|
4089
|
+
},
|
|
4090
|
+
});
|
|
3770
4091
|
```
|
|
3771
4092
|
|
|
3772
4093
|
</dd>
|
|
@@ -42,7 +42,7 @@ const AgentCapabilityBase_1 = require("./AgentCapabilityBase");
|
|
|
42
42
|
exports.ActionCapability = core.serialization
|
|
43
43
|
.object({
|
|
44
44
|
userInteractionRequired: core.serialization.boolean(),
|
|
45
|
-
buttonName: core.serialization.string().
|
|
45
|
+
buttonName: core.serialization.string().optional(),
|
|
46
46
|
userFormParameters: core.serialization.list(ActionParameter_1.ActionParameter),
|
|
47
47
|
precondition: core.serialization.lazy(() => serializers.Precondition).optional(),
|
|
48
48
|
descriptionOverride: core.serialization.string().optional(),
|
|
@@ -32,6 +32,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.list = void 0;
|
|
37
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as serializers from "../../../../index";
|
|
2
|
+
import * as MavenAGI from "../../../../../api/index";
|
|
3
|
+
import * as core from "../../../../../core";
|
|
4
|
+
import { AgentEnvironment } from "../../types/AgentEnvironment";
|
|
5
|
+
import { PiiCategory } from "../../types/PiiCategory";
|
|
6
|
+
import { LlmPersona } from "../../../commons/types/LlmPersona";
|
|
7
|
+
export declare const AgentPatchRequest: core.serialization.Schema<serializers.AgentPatchRequest.Raw, MavenAGI.AgentPatchRequest>;
|
|
8
|
+
export declare namespace AgentPatchRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
environment?: AgentEnvironment.Raw | null;
|
|
12
|
+
defaultTimezone?: string | null;
|
|
13
|
+
enabledPiiCategories?: PiiCategory.Raw[] | null;
|
|
14
|
+
systemFallbackMessage?: (string | null | undefined) | null;
|
|
15
|
+
persona?: LlmPersona.Raw | null;
|
|
16
|
+
additionalPromptText?: (string | null | undefined) | null;
|
|
17
|
+
categoryGenerationPromptText?: (string | null | undefined) | null;
|
|
18
|
+
contentSafetyViolationResponsePromptText?: (string | null | undefined) | null;
|
|
19
|
+
rejectQuestionsWithoutKnowledge?: boolean | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AgentPatchRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core"));
|
|
39
|
+
const AgentEnvironment_1 = require("../../types/AgentEnvironment");
|
|
40
|
+
const PiiCategory_1 = require("../../types/PiiCategory");
|
|
41
|
+
const LlmPersona_1 = require("../../../commons/types/LlmPersona");
|
|
42
|
+
exports.AgentPatchRequest = core.serialization.object({
|
|
43
|
+
name: core.serialization.string().optional(),
|
|
44
|
+
environment: AgentEnvironment_1.AgentEnvironment.optional(),
|
|
45
|
+
defaultTimezone: core.serialization.string().optional(),
|
|
46
|
+
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory).optional(),
|
|
47
|
+
systemFallbackMessage: core.serialization.string().optionalNullable(),
|
|
48
|
+
persona: LlmPersona_1.LlmPersona.optional(),
|
|
49
|
+
additionalPromptText: core.serialization.string().optionalNullable(),
|
|
50
|
+
categoryGenerationPromptText: core.serialization.string().optionalNullable(),
|
|
51
|
+
contentSafetyViolationResponsePromptText: core.serialization.string().optionalNullable(),
|
|
52
|
+
rejectQuestionsWithoutKnowledge: core.serialization.boolean().optional(),
|
|
53
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AgentPatchRequest } from "./AgentPatchRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentPatchRequest = void 0;
|
|
4
|
+
var AgentPatchRequest_1 = require("./AgentPatchRequest");
|
|
5
|
+
Object.defineProperty(exports, "AgentPatchRequest", { enumerable: true, get: function () { return AgentPatchRequest_1.AgentPatchRequest; } });
|
|
@@ -4,6 +4,7 @@ import * as core from "../../../../core";
|
|
|
4
4
|
import { EntityId } from "../../commons/types/EntityId";
|
|
5
5
|
import { AgentEnvironment } from "./AgentEnvironment";
|
|
6
6
|
import { PiiCategory } from "./PiiCategory";
|
|
7
|
+
import { AgentPrompting } from "./AgentPrompting";
|
|
7
8
|
export declare const Agent: core.serialization.ObjectSchema<serializers.Agent.Raw, MavenAGI.Agent>;
|
|
8
9
|
export declare namespace Agent {
|
|
9
10
|
interface Raw {
|
|
@@ -13,5 +14,7 @@ export declare namespace Agent {
|
|
|
13
14
|
environment: AgentEnvironment.Raw;
|
|
14
15
|
defaultTimezone: string;
|
|
15
16
|
enabledPiiCategories: PiiCategory.Raw[];
|
|
17
|
+
systemFallbackMessage?: string | null;
|
|
18
|
+
prompting: AgentPrompting.Raw;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const EntityId_1 = require("../../commons/types/EntityId");
|
|
40
40
|
const AgentEnvironment_1 = require("./AgentEnvironment");
|
|
41
41
|
const PiiCategory_1 = require("./PiiCategory");
|
|
42
|
+
const AgentPrompting_1 = require("./AgentPrompting");
|
|
42
43
|
exports.Agent = core.serialization.object({
|
|
43
44
|
agentId: EntityId_1.EntityId,
|
|
44
45
|
name: core.serialization.string(),
|
|
@@ -46,4 +47,6 @@ exports.Agent = core.serialization.object({
|
|
|
46
47
|
environment: AgentEnvironment_1.AgentEnvironment,
|
|
47
48
|
defaultTimezone: core.serialization.string(),
|
|
48
49
|
enabledPiiCategories: core.serialization.set(PiiCategory_1.PiiCategory),
|
|
50
|
+
systemFallbackMessage: core.serialization.string().optional(),
|
|
51
|
+
prompting: AgentPrompting_1.AgentPrompting,
|
|
49
52
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as serializers from "../../../index";
|
|
2
|
+
import * as MavenAGI from "../../../../api/index";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import { LlmPersona } from "../../commons/types/LlmPersona";
|
|
5
|
+
export declare const AgentPrompting: core.serialization.ObjectSchema<serializers.AgentPrompting.Raw, MavenAGI.AgentPrompting>;
|
|
6
|
+
export declare namespace AgentPrompting {
|
|
7
|
+
interface Raw {
|
|
8
|
+
persona: LlmPersona.Raw;
|
|
9
|
+
additionalPromptText?: string | null;
|
|
10
|
+
categoryGenerationPromptText?: string | null;
|
|
11
|
+
contentSafetyViolationResponsePromptText?: string | null;
|
|
12
|
+
rejectQuestionsWithoutKnowledge: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.AgentPrompting = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core"));
|
|
39
|
+
const LlmPersona_1 = require("../../commons/types/LlmPersona");
|
|
40
|
+
exports.AgentPrompting = core.serialization.object({
|
|
41
|
+
persona: LlmPersona_1.LlmPersona,
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
43
|
+
categoryGenerationPromptText: core.serialization.string().optional(),
|
|
44
|
+
contentSafetyViolationResponsePromptText: core.serialization.string().optional(),
|
|
45
|
+
rejectQuestionsWithoutKnowledge: core.serialization.boolean(),
|
|
46
|
+
});
|
|
@@ -2,8 +2,8 @@ export * from "./PiiCategory";
|
|
|
2
2
|
export * from "./AgentEnvironment";
|
|
3
3
|
export * from "./Agent";
|
|
4
4
|
export * from "./CreateAgentRequest";
|
|
5
|
-
export * from "./AgentPatchRequest";
|
|
6
5
|
export * from "./AgentsSearchRequest";
|
|
7
6
|
export * from "./AgentField";
|
|
8
7
|
export * from "./AgentFilter";
|
|
9
8
|
export * from "./AgentsSearchResponse";
|
|
9
|
+
export * from "./AgentPrompting";
|
|
@@ -18,8 +18,8 @@ __exportStar(require("./PiiCategory"), exports);
|
|
|
18
18
|
__exportStar(require("./AgentEnvironment"), exports);
|
|
19
19
|
__exportStar(require("./Agent"), exports);
|
|
20
20
|
__exportStar(require("./CreateAgentRequest"), exports);
|
|
21
|
-
__exportStar(require("./AgentPatchRequest"), exports);
|
|
22
21
|
__exportStar(require("./AgentsSearchRequest"), exports);
|
|
23
22
|
__exportStar(require("./AgentField"), exports);
|
|
24
23
|
__exportStar(require("./AgentFilter"), exports);
|
|
25
24
|
__exportStar(require("./AgentsSearchResponse"), exports);
|
|
25
|
+
__exportStar(require("./AgentPrompting"), exports);
|
|
@@ -2,6 +2,7 @@ import * as serializers from "../../../index";
|
|
|
2
2
|
import * as MavenAGI from "../../../../api/index";
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
4
|
import { EntityId } from "./EntityId";
|
|
5
|
+
import { UserDataWithReference } from "./UserDataWithReference";
|
|
5
6
|
import { AppUser } from "./AppUser";
|
|
6
7
|
export declare const AppUserResponse: core.serialization.ObjectSchema<serializers.AppUserResponse.Raw, MavenAGI.AppUserResponse>;
|
|
7
8
|
export declare namespace AppUserResponse {
|
|
@@ -10,5 +11,6 @@ export declare namespace AppUserResponse {
|
|
|
10
11
|
agentUserId: string;
|
|
11
12
|
allUserData: Record<string, Record<string, string>>;
|
|
12
13
|
defaultUserData: Record<string, string>;
|
|
14
|
+
agentUserData: Record<string, UserDataWithReference.Raw[]>;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.AppUserResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core"));
|
|
39
39
|
const EntityId_1 = require("./EntityId");
|
|
40
|
+
const UserDataWithReference_1 = require("./UserDataWithReference");
|
|
40
41
|
const AppUser_1 = require("./AppUser");
|
|
41
42
|
exports.AppUserResponse = core.serialization
|
|
42
43
|
.object({
|
|
@@ -44,5 +45,6 @@ exports.AppUserResponse = core.serialization
|
|
|
44
45
|
agentUserId: core.serialization.string(),
|
|
45
46
|
allUserData: core.serialization.record(core.serialization.string(), core.serialization.record(core.serialization.string(), core.serialization.string())),
|
|
46
47
|
defaultUserData: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
48
|
+
agentUserData: core.serialization.record(core.serialization.string(), core.serialization.list(UserDataWithReference_1.UserDataWithReference)),
|
|
47
49
|
})
|
|
48
50
|
.extend(AppUser_1.AppUser);
|
|
@@ -50,4 +50,6 @@ exports.ConversationSummary = core.serialization.object({
|
|
|
50
50
|
humanAgents: core.serialization.list(core.serialization.string()),
|
|
51
51
|
humanAgentsWithInserts: core.serialization.list(core.serialization.string()),
|
|
52
52
|
users: core.serialization.list(core.serialization.string()),
|
|
53
|
+
lastUserMessage: core.serialization.string().optional(),
|
|
54
|
+
lastBotMessage: core.serialization.string().optional(),
|
|
53
55
|
});
|
|
@@ -6,6 +6,7 @@ import { EntityId } from "./EntityId";
|
|
|
6
6
|
export declare const SimulationContext: core.serialization.ObjectSchema<serializers.SimulationContext.Raw, MavenAGI.SimulationContext>;
|
|
7
7
|
export declare namespace SimulationContext {
|
|
8
8
|
interface Raw {
|
|
9
|
+
additionalPromptText?: string | null;
|
|
9
10
|
persona?: LlmPersona.Raw | null;
|
|
10
11
|
availableKnowledgeBases?: EntityId.Raw[] | null;
|
|
11
12
|
}
|
|
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../core"));
|
|
|
39
39
|
const LlmPersona_1 = require("./LlmPersona");
|
|
40
40
|
const EntityId_1 = require("./EntityId");
|
|
41
41
|
exports.SimulationContext = core.serialization.object({
|
|
42
|
+
additionalPromptText: core.serialization.string().optional(),
|
|
42
43
|
persona: LlmPersona_1.LlmPersona.optional(),
|
|
43
44
|
availableKnowledgeBases: core.serialization.list(EntityId_1.EntityId).optional(),
|
|
44
45
|
});
|