@overmap-ai/core 1.0.53-add-agent-conversations.6 → 1.0.53-add-agent-conversations.7
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/dist/overmap-core.js +18 -1
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +18 -1
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/AgentService.d.ts +2 -1
- package/dist/store/slices/agentsSlice.d.ts +3 -2
- package/dist/typings/models/agents.d.ts +11 -17
- package/package.json +1 -1
|
@@ -4468,10 +4468,17 @@ var __publicField = (obj, key, value) => {
|
|
|
4468
4468
|
throw new Error("Conversation does not exist in history");
|
|
4469
4469
|
}
|
|
4470
4470
|
state.conversations[action.payload.offline_id] = action.payload;
|
|
4471
|
+
},
|
|
4472
|
+
updateConversation: (state, action) => {
|
|
4473
|
+
const existing = state.conversations[action.payload.offline_id];
|
|
4474
|
+
if (!existing) {
|
|
4475
|
+
throw new Error("Conversation does not exist in history");
|
|
4476
|
+
}
|
|
4477
|
+
state.conversations[action.payload.offline_id] = { ...existing, ...action.payload };
|
|
4471
4478
|
}
|
|
4472
4479
|
}
|
|
4473
4480
|
});
|
|
4474
|
-
const { setConversations, addConversation, setConversation } = agentsSlice.actions;
|
|
4481
|
+
const { setConversations, addConversation, setConversation, updateConversation } = agentsSlice.actions;
|
|
4475
4482
|
const selectConversationMapping = (state) => state.agentsReducer.conversations;
|
|
4476
4483
|
const selectConversations = toolkit.createSelector(
|
|
4477
4484
|
[selectConversationMapping],
|
|
@@ -8522,6 +8529,15 @@ var __publicField = (obj, key, value) => {
|
|
|
8522
8529
|
queryParams: conversationId ? { conversation_id: conversationId } : {}
|
|
8523
8530
|
});
|
|
8524
8531
|
}
|
|
8532
|
+
async get(conversationId) {
|
|
8533
|
+
return this.enqueueRequest({
|
|
8534
|
+
description: "Get agent conversation",
|
|
8535
|
+
method: HttpMethod.GET,
|
|
8536
|
+
url: `/agents/conversations/${conversationId}/`,
|
|
8537
|
+
blockers: ["conversation"],
|
|
8538
|
+
blocks: ["conversation"]
|
|
8539
|
+
});
|
|
8540
|
+
}
|
|
8525
8541
|
async rate(responseId, rating) {
|
|
8526
8542
|
return this.enqueueRequest({
|
|
8527
8543
|
description: "Rate agent response",
|
|
@@ -17151,6 +17167,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17151
17167
|
exports2.updateComponent = updateComponent;
|
|
17152
17168
|
exports2.updateComponentAttachment = updateComponentAttachment;
|
|
17153
17169
|
exports2.updateComponentTypeAttachment = updateComponentTypeAttachment;
|
|
17170
|
+
exports2.updateConversation = updateConversation;
|
|
17154
17171
|
exports2.updateDocumentAttachment = updateDocumentAttachment;
|
|
17155
17172
|
exports2.updateDocuments = updateDocuments;
|
|
17156
17173
|
exports2.updateFormSubmission = updateFormSubmission;
|