mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 13:09:40 +00:00
Added tool calling support (#731)
Co-authored-by: krut_ni <nils.kruthoff@dlr.de> Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
266 files changed
+11186
-740
No files matched your search
@@ -0,0 +1,19 @@
|
||||
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)),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user