fix: omit ref for todo tool
parent
edc933d816
commit
0377cfd37c
|
|
@ -6,7 +6,7 @@ import { Todo } from "../session/todo"
|
||||||
export const TodoWriteTool = Tool.define("todowrite", {
|
export const TodoWriteTool = Tool.define("todowrite", {
|
||||||
description: DESCRIPTION_WRITE,
|
description: DESCRIPTION_WRITE,
|
||||||
parameters: z.object({
|
parameters: z.object({
|
||||||
todos: z.array(Todo.Info).describe("The updated todo list"),
|
todos: z.array(z.object(Todo.Info.shape)).describe("The updated todo list"),
|
||||||
}),
|
}),
|
||||||
async execute(params, opts) {
|
async execute(params, opts) {
|
||||||
await Todo.update({
|
await Todo.update({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue