diff --git a/internal/agent/tools/tools.go b/internal/agent/tools/tools.go index 90840ccfdadf392d1e1a18dfd0d6acad02851227..d35b117581f7fc35af3e4c52d40fc13e8a15d704 100644 --- a/internal/agent/tools/tools.go +++ b/internal/agent/tools/tools.go @@ -61,7 +61,7 @@ func GetModelNameFromContext(ctx context.Context) string { // markdown description when CRUSH_SHORT_TOOL_DESCRIPTIONS is set, significantly // reducing token usage. Otherwise returns the full description. func FirstLineDescription(content []byte) string { - if os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS") == "" { + if v, _ := strconv.ParseBool(os.Getenv("CRUSH_SHORT_TOOL_DESCRIPTIONS")); !v { return strings.TrimSpace(string(content)) } for line := range strings.SplitSeq(string(content), "\n") {