feat: GitHub Code Search als Agent-Tool + Dashboard-Badges
- UseGitHubSearch Property im AgentRecord (Default: false) - DB-Migration: use_github_search Spalte in agents - Checkbox im Agent-Formular (Standard: unchecked) - Tool nur aktiv wenn Agent-Checkbox UND GitHubToken konfiguriert - includeGitHubSearch Parameter durch StreamChat/AddToolsToPayload - Dashboard-Badges: 🔮 Auto-Kontext + 🐙 GitHub Search
This commit is contained in:
1 parent
bca5e5145a
commit
89122e2170
10 files changed
+22
-8
No files matched your search
@@ -79,7 +79,7 @@ public class ChatService
|
||||
|
||||
var hasWorkspace = !string.IsNullOrEmpty(workspace);
|
||||
var includeMemory = agent.UseMemory && !string.IsNullOrEmpty(agent.AgentId);
|
||||
var includeGitHubSearch = _toolService.HasGitHubToken;
|
||||
var includeGitHubSearch = agent.UseGitHubSearch && _toolService.HasGitHubToken;
|
||||
var hasTools = hasWorkspace || includeMemory || includeGitHubSearch;
|
||||
var toolChoice = hasTools ? "any" : null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user