Feat(shell): cd and pipes support

This commit is contained in:
Grail Finder
2026-02-28 13:59:54 +03:00
parent d79760a289
commit 133ec27938
2 changed files with 62 additions and 48 deletions

3
bot.go
View File

@@ -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]