summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.go2
-rw-r--r--tools.go19
2 files changed, 17 insertions, 4 deletions
diff --git a/bot.go b/bot.go
index 53b3a84..1df1665 100644
--- a/bot.go
+++ b/bot.go
@@ -1207,7 +1207,7 @@ func chatToTextSlice(messages []models.RoleMsg, showSys bool) []string {
// This is a tool call indicator - show collapsed
if toolCollapsed {
toolName := messages[i].ToolCall.Name
- resp[i] = fmt.Sprintf("%s\n[yellow::i][tool call: %s (press Ctrl+T to expand)][-:-:-]\n", icon, toolName)
+ resp[i] = fmt.Sprintf("%s\n%s\n[yellow::i][tool call: %s (press Ctrl+T to expand)][-:-:-]\n", icon, messages[i].GetText(), toolName)
} else {
// Show full tool call info
toolName := messages[i].ToolCall.Name
diff --git a/tools.go b/tools.go
index e6b6596..b1e5bbd 100644
--- a/tools.go
+++ b/tools.go
@@ -1546,9 +1546,22 @@ var baseTools = []models.Tool{
Name: "todo_update",
Description: "Update a todo item by ID with new task or status. Status must be one of: pending, in_progress, completed.",
Parameters: models.ToolFuncParams{
- Type: "object",
- Required: []string{},
- Properties: map[string]models.ToolArgProps{},
+ Type: "object",
+ Required: []string{"id"},
+ Properties: map[string]models.ToolArgProps{
+ "id": models.ToolArgProps{
+ Type: "string",
+ Description: "id of the todo item to update",
+ },
+ "task": models.ToolArgProps{
+ Type: "string",
+ Description: "new task description (optional)",
+ },
+ "status": models.ToolArgProps{
+ Type: "string",
+ Description: "new status: pending, in_progress, or completed (optional)",
+ },
+ },
},
},
},