Reorder execute params: (toolCallId, params, onUpdate, ctx, signal?)

Optional signal now at the end for cleaner API
This commit is contained in:
Mario Zechner 2025-12-31 12:14:28 +01:00
parent 4c9c453646
commit 19c4182c21
9 changed files with 15 additions and 15 deletions

View file

@ -659,7 +659,7 @@ const factory: CustomToolFactory = (pi) => ({
name: Type.String({ description: "Name to greet" }),
}),
async execute(toolCallId, params, signal, onUpdate, ctx) {
async execute(toolCallId, params, onUpdate, ctx, signal) {
const { name } = params as { name: string };
return {
content: [{ type: "text", text: `Hello, ${name}!` }],