mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 07:10:39 +00:00
Co-authored-by: krut_ni <nils.kruthoff@dlr.de> Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
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)),
|
|
};
|
|
}
|