mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-31 13:31:39 +00:00
docs: fix ts error in math examples (#18244)
This commit is contained in:
parent
9814dc6526
commit
86dc66eae9
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ export const add = tool({
|
|||
b: tool.schema.number().describe("Second number"),
|
||||
},
|
||||
async execute(args) {
|
||||
return args.a + args.b
|
||||
return (args.a + args.b).toString()
|
||||
},
|
||||
})
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ export const multiply = tool({
|
|||
b: tool.schema.number().describe("Second number"),
|
||||
},
|
||||
async execute(args) {
|
||||
return args.a * args.b
|
||||
return (args.a * args.b).toString()
|
||||
},
|
||||
})
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue