Skip to content

Commit

Permalink
Conversation deletion: delete conversation include file actions (#9637)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Dec 28, 2024
1 parent 97151f9 commit b35d09e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front/lib/api/assistant/conversation/destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { removeNulls } from "@dust-tt/types";
import { chunk } from "lodash";

import { AgentBrowseAction } from "@app/lib/models/assistant/actions/browse";
import { AgentConversationIncludeFileAction } from "@app/lib/models/assistant/actions/conversation/include_file";
import { AgentDustAppRunAction } from "@app/lib/models/assistant/actions/dust_app_run";
import { AgentProcessAction } from "@app/lib/models/assistant/actions/process";
import { AgentRetrievalAction } from "@app/lib/models/assistant/actions/retrieval";
Expand Down Expand Up @@ -56,6 +57,9 @@ async function destroyActionsRelatedResources(agentMessageIds: Array<ModelId>) {
await AgentBrowseAction.destroy({
where: { agentMessageId: agentMessageIds },
});
await AgentConversationIncludeFileAction.destroy({
where: { agentMessageId: agentMessageIds },
});
}

async function destroyMessageRelatedResources(messageIds: Array<ModelId>) {
Expand Down

0 comments on commit b35d09e

Please sign in to comment.