mirror of
https://github.com/cheikh2shift/godex.git
synced 2026-10-19 01:29:53 -05:00
improve tool call detection func
This commit is contained in:
1 parent
99b514d36c
commit
3a47b9a1ee
2 files changed
+9
-2
No files matched your search
+8
-1
@@ -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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user