Merge reply-chain documents into AI requests
This commit is contained in:
@@ -3,3 +3,7 @@ import type {StoredAttachment} from "../model/stored-attachment";
|
||||
export function filterUserVisibleStoredAttachments(attachments: StoredAttachment[]): StoredAttachment[] {
|
||||
return attachments.filter(attachment => attachment.scope !== "internal_artifact");
|
||||
}
|
||||
|
||||
export function filterUserInputStoredAttachments(attachments: StoredAttachment[]): StoredAttachment[] {
|
||||
return attachments.filter(attachment => attachment.scope === "user_input" || attachment.scope === undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user