mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-06 11:49:40 +00:00
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
33 lines
1.7 KiB
C#
33 lines
1.7 KiB
C#
using AIStudio.Provider;
|
|
using AIStudio.Tools.PluginSystem;
|
|
|
|
namespace AIStudio.Tools.ToolCallingSystem.ToolCallingImplementations.Mailboxes;
|
|
|
|
/// <summary>
|
|
/// The tools which read the mailboxes of the user: Search Mails, Read Mail, and Count Mails.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// All three see the same mails, so they need the same trust, and searching without reading or
|
|
/// counting would only get in the way. Each mailbox states the confidence it needs, and only a
|
|
/// provider which meets it may read the mailbox, see MailboxRetrievalService.GetReadableMailboxes.
|
|
/// A provider below the lowest level a mailbox may ask for cannot read any mailbox, which is why
|
|
/// the collection asks for that level.
|
|
/// </remarks>
|
|
public sealed class MailboxToolCollection : IToolCollection
|
|
{
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(MailboxToolCollection).Namespace, nameof(MailboxToolCollection));
|
|
|
|
public ToolCollectionDefinition GetDefinition() => new()
|
|
{
|
|
Id = ToolSelectionRules.MAILBOXES_COLLECTION_ID,
|
|
ToolIds = [ToolSelectionRules.SEARCH_MAILS_TOOL_ID, ToolSelectionRules.READ_MAIL_TOOL_ID, ToolSelectionRules.COUNT_MAILS_TOOL_ID],
|
|
MinimumProviderConfidence = ConfidenceLevel.VERY_LOW,
|
|
DescriptionForLLM = "Search, read, and count the mails in the mailboxes of the user, including their attachments. AI Studio keeps the mailboxes in a local index; nothing in a mailbox changes.",
|
|
};
|
|
|
|
public string Icon => Icons.Material.Filled.Mail;
|
|
|
|
public string GetDisplayName() => TB("Mailboxes");
|
|
|
|
public string GetDescription() => TB("Lets the AI search, read, and count the mails in your mailboxes, including their attachments.");
|
|
} |