Enha: show tool response

This commit is contained in:
Grail Finder
2025-08-08 14:26:01 +03:00
parent 3b7784e0a4
commit 6955a5bc3a
3 changed files with 6 additions and 4 deletions

2
bot.go
View File

@@ -448,6 +448,8 @@ func findCall(msg, toolCall string, tv *tview.TextView) {
}
resp := f(fc.Args)
toolMsg := fmt.Sprintf("tool response: %+v", string(resp))
fmt.Fprintf(tv, "%s[-:-:b](%d) <%s>: [-:-:-]\n%s\n",
"\n", len(chatBody.Messages), cfg.ToolRole, toolMsg)
chatRound(toolMsg, cfg.ToolRole, tv, false, false)
}