mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 03:47:21 +00:00
Added the choice between formal and informal address to the whole app (#1200)
This commit is contained in:
1 parent
382db4b8d0
commit
c9a376f742
342 files changed
+14378
-1893
No files matched your search
+3
-1
@@ -31,6 +31,8 @@ public sealed class CountMailsTool(SettingsManager settingsManager, MailboxRetri
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(CountMailsTool).Namespace, nameof(CountMailsTool));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(CountMailsTool).Namespace, nameof(CountMailsTool));
|
||||
|
||||
private const string GROUP_BY_ARGUMENT = "group_by";
|
||||
private const string TOOL_ACTION = "count";
|
||||
|
||||
@@ -124,7 +126,7 @@ public sealed class CountMailsTool(SettingsManager settingsManager, MailboxRetri
|
||||
|
||||
public string GetDisplayName() => TB("Count Mails");
|
||||
|
||||
public string GetDescription() => TB("Lets the AI count the mails in your mailboxes, e.g., the unread ones or those in a project folder.");
|
||||
public string GetDescription() => TA("Lets the AI count the mails in your mailboxes, e.g., the unread ones or those in a project folder.");
|
||||
|
||||
public Task<ToolConfigurationState?> ValidateConfigurationAsync(ToolDefinition definition, IReadOnlyDictionary<string, string> settingsValues, CancellationToken token = default) =>
|
||||
Task.FromResult(MailToolConfiguration.GetState(settingsManager));
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ namespace AIStudio.Tools.ToolCallingSystem.ToolCallingImplementations.Mailboxes;
|
||||
/// </summary>
|
||||
internal static class MailToolConfiguration
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(MailToolConfiguration).Namespace, nameof(MailToolConfiguration));
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(MailToolConfiguration).Namespace, nameof(MailToolConfiguration));
|
||||
|
||||
/// <summary>
|
||||
/// The state the selection shows for a mail tool: not set up while there is no mailbox at all.
|
||||
@@ -24,6 +24,6 @@ internal static class MailToolConfiguration
|
||||
: new ToolConfigurationState
|
||||
{
|
||||
IsConfigured = false,
|
||||
Message = TB("To use this tool, add a mailbox to your data sources first."),
|
||||
Message = TA("To use this tool, add a mailbox to your data sources first."),
|
||||
};
|
||||
}
|
||||
+3
-1
@@ -17,6 +17,8 @@ public sealed class MailboxToolCollection : IToolCollection
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(MailboxToolCollection).Namespace, nameof(MailboxToolCollection));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(MailboxToolCollection).Namespace, nameof(MailboxToolCollection));
|
||||
|
||||
public ToolCollectionDefinition GetDefinition() => new()
|
||||
{
|
||||
Id = ToolSelectionRules.MAILBOXES_COLLECTION_ID,
|
||||
@@ -29,5 +31,5 @@ public sealed class MailboxToolCollection : IToolCollection
|
||||
|
||||
public string GetDisplayName() => TB("Mailboxes");
|
||||
|
||||
public string GetDescription() => TB("Lets the AI search, read, and count the mails in your mailboxes, including their attachments.");
|
||||
public string GetDescription() => TA("Lets the AI search, read, and count the mails in your mailboxes, including their attachments.");
|
||||
}
|
||||
+3
-1
@@ -28,6 +28,8 @@ public sealed class ReadMailTool(SettingsManager settingsManager, MailboxRetriev
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ReadMailTool).Namespace, nameof(ReadMailTool));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(ReadMailTool).Namespace, nameof(ReadMailTool));
|
||||
|
||||
private const string MAIL_ID_ARGUMENT = "mail_id";
|
||||
private const string ATTACHMENT_ARGUMENT = "attachment";
|
||||
private const string INCLUDE_HEADERS_ARGUMENT = "include_headers";
|
||||
@@ -108,7 +110,7 @@ public sealed class ReadMailTool(SettingsManager settingsManager, MailboxRetriev
|
||||
|
||||
public string GetDisplayName() => TB("Read Mail");
|
||||
|
||||
public string GetDescription() => TB("Lets the AI read the mails it found in your mailboxes, including their attachments.");
|
||||
public string GetDescription() => TA("Lets the AI read the mails it found in your mailboxes, including their attachments.");
|
||||
|
||||
public Task<ToolConfigurationState?> ValidateConfigurationAsync(ToolDefinition definition, IReadOnlyDictionary<string, string> settingsValues, CancellationToken token = default) =>
|
||||
Task.FromResult(MailToolConfiguration.GetState(settingsManager));
|
||||
|
||||
+3
-1
@@ -31,6 +31,8 @@ public sealed class SearchMailsTool(SettingsManager settingsManager, MailboxRetr
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(SearchMailsTool).Namespace, nameof(SearchMailsTool));
|
||||
|
||||
private static string TA(string fallbackEN) => I18N.I.TA(fallbackEN, typeof(SearchMailsTool).Namespace, nameof(SearchMailsTool));
|
||||
|
||||
private const string QUERY_ARGUMENT = "query";
|
||||
private const string PAGE_ARGUMENT = "page";
|
||||
private const string TOOL_ACTION = "search";
|
||||
@@ -187,7 +189,7 @@ public sealed class SearchMailsTool(SettingsManager settingsManager, MailboxRetr
|
||||
|
||||
public string GetDisplayName() => TB("Search Mails");
|
||||
|
||||
public string GetDescription() => TB("Lets the AI search your mailboxes, list mails by sender, date, or flags, and quote what they say.");
|
||||
public string GetDescription() => TA("Lets the AI search your mailboxes, list mails by sender, date, or flags, and quote what they say.");
|
||||
|
||||
public Task<ToolConfigurationState?> ValidateConfigurationAsync(ToolDefinition definition, IReadOnlyDictionary<string, string> settingsValues, CancellationToken token = default) =>
|
||||
Task.FromResult(MailToolConfiguration.GetState(settingsManager));
|
||||
|
||||
Reference in new issue
Block a user