refactor(plugin): include name in promise tools
This commit is contained in:
parent
efeff63749
commit
2a4b298108
5 changed files with 16 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue