refactor(plugin): include name in promise tools

This commit is contained in:
Dax Raad 2026-07-10 00:22:45 -04:00
commit 2a4b298108
5 changed files with 16 additions and 10 deletions

View file

@ -106,7 +106,8 @@ describe("fromPromise", () => {
id: "promise-tool",
setup: async (ctx) => {
await ctx.tool.transform((tools) => {
tools.add("hello", {
tools.add({
name: "hello",
description: "Hello",
input: Schema.Struct({ name: Schema.String }),
output: Schema.String,