improve tool call detection func

This commit is contained in:
Cheikh Seck committed 2026-04-22 09:31:01 +00:00
1 parent 99b514d36c
commit 3a47b9a1ee
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -13,4 +13,11 @@
/.godex/providers.yaml
.git/
.gtree
/godex
# Dyno test harness generated files
/dyno/logs/
/dyno/mocks/
/dyno/*.so
/dyno/*.c
/dyno/strace_wrapper.sh
/dyno/godex
+1 -1
View File
@@ -2524,7 +2524,7 @@ func looksLikeToolCall(s string) bool {
if !strings.Contains(lower, "toolcall") {
return false
}
return strings.Contains(s, "{") && strings.Contains(s, "}")
return strings.Contains(s, "{") || strings.Contains(s, "}")
}
func callTool(ctx context.Context, servers []MCPServer, name string, args map[string]interface{}, timeoutSecs int, autoDenyRestrictedPaths bool) (string, error) {