fix tool call schema

This commit is contained in:
ramnique 2025-01-30 16:37:04 +05:30
parent 6e59de77aa
commit 278cd92ad3
2 changed files with 5 additions and 2 deletions

View file

@ -200,7 +200,7 @@ export const WorkflowTool = z.object({
description: z.string(),
})),
required: z.array(z.string()).optional(),
}).optional(),
}),
});
export const AgenticAPIAgent = WorkflowAgent

View file

@ -273,7 +273,10 @@ function reducer(state: State, action: Action): State {
draft.workflow?.tools.push({
name: newToolName,
description: "",
parameters: undefined,
parameters: {
type: "object",
properties: {},
},
mockInPlayground: true,
autoSubmitMockedResponse: true,
...action.tool