mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 23:52:11 +00:00
20 lines
611 B
C#
20 lines
611 B
C#
using AIStudio.Tools.PluginSystem;
|
|
|
|
namespace AIStudio.Tools.ToolCallingSystem;
|
|
|
|
public sealed class ToolRuntimeStatus
|
|
{
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ToolRuntimeStatus).Namespace, nameof(ToolRuntimeStatus));
|
|
|
|
public bool IsRunning { get; set; }
|
|
|
|
public List<string> ToolNames { get; set; } = [];
|
|
|
|
public string Message => this.ToolNames.Count switch
|
|
{
|
|
0 => string.Empty,
|
|
1 => string.Format(TB("Using tool: {0}"), this.ToolNames[0]),
|
|
_ => string.Format(TB("Using tools: {0}"), string.Join(", ", this.ToolNames)),
|
|
};
|
|
}
|