Fallback-Workspace /tmp wenn Skills aktiv aber kein Workspace gesetzt

This commit is contained in:
Meleki committed 2026-03-02 12:31:28 +01:00
1 parent 9af1465ee5
commit d05023b1da
2 files changed
+7

No files matched your search

+6
View File
@@ -88,6 +88,12 @@ public static class ChatEndpoint
var chainId = Guid.NewGuid().ToString("N");
var workspace = session.Workspace;
// Skills brauchen Tool-Use (execute) – wenn Skills aktiv aber kein Workspace gesetzt,
// /tmp als Fallback-Workspace setzen damit die Tool-Definitionen generiert werden.
if (string.IsNullOrEmpty(workspace) && agentSkills.Any())
workspace = "/tmp";
var toolChoice = agent.ToolChoice ?? "any";
var hasWorkspace = !string.IsNullOrEmpty(workspace);
var includeMemory = agent.UseMemory && !string.IsNullOrEmpty(agent.AgentId);