summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-28 13:59:54 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-28 13:59:54 +0300
commit133ec279385d38c2b597f5404ad8c8143080f161 (patch)
treeb01912799775eaa6e460b56d59e8b0028ab3fc21 /bot.go
parentd79760a28927de773a0fff46b7482431d8f504cd (diff)
Feat(shell): cd and pipes support
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot.go b/bot.go
index f662d5c..fb0e9bf 100644
--- a/bot.go
+++ b/bot.go
@@ -1116,11 +1116,10 @@ func findCall(msg, toolCall string) bool {
}
// Store tool call info in the assistant message
// Convert Args map to JSON string for storage
- argsJSON, _ := json.Marshal(lastToolCall.Args)
chatBody.Messages[lastMsgIdx].ToolCall = &models.ToolCall{
ID: lastToolCall.ID,
Name: lastToolCall.Name,
- Args: string(argsJSON),
+ Args: mapToString(lastToolCall.Args),
}
// call a func
_, ok := fnMap[fc.Name]