mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 19:32:40 +02:00
fix tool call schema
This commit is contained in:
parent
6e59de77aa
commit
278cd92ad3
2 changed files with 5 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ export const WorkflowTool = z.object({
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
})),
|
})),
|
||||||
required: z.array(z.string()).optional(),
|
required: z.array(z.string()).optional(),
|
||||||
}).optional(),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const AgenticAPIAgent = WorkflowAgent
|
export const AgenticAPIAgent = WorkflowAgent
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,10 @@ function reducer(state: State, action: Action): State {
|
||||||
draft.workflow?.tools.push({
|
draft.workflow?.tools.push({
|
||||||
name: newToolName,
|
name: newToolName,
|
||||||
description: "",
|
description: "",
|
||||||
parameters: undefined,
|
parameters: {
|
||||||
|
type: "object",
|
||||||
|
properties: {},
|
||||||
|
},
|
||||||
mockInPlayground: true,
|
mockInPlayground: true,
|
||||||
autoSubmitMockedResponse: true,
|
autoSubmitMockedResponse: true,
|
||||||
...action.tool
|
...action.tool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue