Fallback-Workspace /tmp wenn Skills aktiv aber kein Workspace gesetzt
This commit is contained in:
1 parent
9af1465ee5
commit
d05023b1da
2 files changed
+7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user