mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-29 17:23:38 +00:00
Some checks are pending
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-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 }}) (-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 / 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
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
32 lines
1.5 KiB
C#
32 lines
1.5 KiB
C#
namespace AIStudio.Tools.ToolCallingSystem;
|
|
|
|
/// <summary>
|
|
/// Supplies tool definitions to the registry.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Where a tool comes from and what a tool is are two different questions. AI Studio's own tools
|
|
/// are written in C#, plugin authors will describe theirs in Lua, and the assistants are to be
|
|
/// offered as tools as well — each arrives differently, yet the registry validates and serves
|
|
/// them all the same way.<br/><br/>
|
|
/// A source is asked once while the registry is being built. Definitions do not change while the
|
|
/// app runs; a plugin that was loaded later needs the registry rebuilt, not the source re-read.
|
|
/// What a tool offers in a single request may still differ from its definition: the tool tailors
|
|
/// its function to the request then, see IToolImplementation.ResolveFunctionAsync.
|
|
/// </remarks>
|
|
public interface IToolDefinitionSource
|
|
{
|
|
/// <summary>
|
|
/// A name for this source, used in log messages about the definitions it produced.
|
|
/// </summary>
|
|
public string SourceName { get; }
|
|
|
|
/// <summary>
|
|
/// The definitions this source knows.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// May return definitions the registry then rejects. Validating them is the registry's job,
|
|
/// so that every source is held to the same rules — including the ones written by plugin
|
|
/// authors, whose definitions AI Studio does not control.
|
|
/// </remarks>
|
|
public IEnumerable<ToolDefinition> GetDefinitions();
|
|
} |