Fix: todo_update
This commit is contained in:
2
bot.go
2
bot.go
@@ -1207,7 +1207,7 @@ func chatToTextSlice(messages []models.RoleMsg, showSys bool) []string {
|
|||||||
// This is a tool call indicator - show collapsed
|
// This is a tool call indicator - show collapsed
|
||||||
if toolCollapsed {
|
if toolCollapsed {
|
||||||
toolName := messages[i].ToolCall.Name
|
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 {
|
} else {
|
||||||
// Show full tool call info
|
// Show full tool call info
|
||||||
toolName := messages[i].ToolCall.Name
|
toolName := messages[i].ToolCall.Name
|
||||||
|
|||||||
17
tools.go
17
tools.go
@@ -1547,8 +1547,21 @@ var baseTools = []models.Tool{
|
|||||||
Description: "Update a todo item by ID with new task or status. Status must be one of: pending, in_progress, completed.",
|
Description: "Update a todo item by ID with new task or status. Status must be one of: pending, in_progress, completed.",
|
||||||
Parameters: models.ToolFuncParams{
|
Parameters: models.ToolFuncParams{
|
||||||
Type: "object",
|
Type: "object",
|
||||||
Required: []string{},
|
Required: []string{"id"},
|
||||||
Properties: map[string]models.ToolArgProps{},
|
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)",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user