mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 03:17:59 +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
@@ -107,17 +107,16 @@ public sealed partial class VisualBriefingStore(
|
||||
string json,
|
||||
CancellationToken token)
|
||||
{
|
||||
await WriteTextAtomicAsync(path, json, token, overwrite: false);
|
||||
await WriteTextAtomicAsync(path, json, overwrite: false, token);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines <c>WriteTextAtomicAsync</c> for the visual briefing feature.
|
||||
/// </summary>
|
||||
private static async Task WriteTextAtomicAsync(
|
||||
string targetPath,
|
||||
private static async Task WriteTextAtomicAsync(string targetPath,
|
||||
string content,
|
||||
CancellationToken token,
|
||||
bool overwrite = true)
|
||||
bool overwrite,
|
||||
CancellationToken token)
|
||||
{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(targetPath)!);
|
||||
var temporaryPath = $"{targetPath}.tmp-{Guid.NewGuid():N}";
|
||||
|
||||
Reference in new issue
Block a user