Added a Send to menu to every chat message and kept restrictions when sending content on (#1124)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-28 13:28:30 +01:00
1 parent d06688ca08
commit bf54b8cd0d
73 files changed
+1923 -390

No files matched your search

@@ -26,4 +26,14 @@ public readonly record struct PromptInjectionSource(PromptInjectionSourceKind Ki
/// </remarks>
/// <param name="mailboxName">The name of the mailbox.</param>
public static PromptInjectionSource MailContent(string mailboxName) => new(PromptInjectionSourceKind.MAIL_CONTENT, mailboxName);
/// <summary>
/// What an AI wrote, sent on to an assistant or into a new chat.
/// </summary>
/// <remarks>
/// An answer may repeat what the AI read, such as a web page or a mail, and the instructions hidden
/// there with it. Named after the chat or the assistant the answer comes from, as the user knows it.
/// </remarks>
/// <param name="senderName">The name of the chat or of the assistant.</param>
public static PromptInjectionSource ModelAnswer(string senderName) => new(PromptInjectionSourceKind.MODEL_ANSWER, senderName);
}
@@ -9,4 +9,5 @@ public enum PromptInjectionSourceKind
RETRIEVAL_CONTEXT,
DATA_SOURCE_DESCRIPTION,
MAIL_CONTENT,
MODEL_ANSWER,
}
@@ -14,6 +14,7 @@ public static class PromptInjectionSourceKindExtensions
PromptInjectionSourceKind.RETRIEVAL_CONTEXT => TB("Retrieved context"),
PromptInjectionSourceKind.DATA_SOURCE_DESCRIPTION => TB("Data source description"),
PromptInjectionSourceKind.MAIL_CONTENT => TB("Mail content"),
PromptInjectionSourceKind.MODEL_ANSWER => TB("AI answer"),
_ => TB("Unknown"),
};
}