Skip to content

Commit 7f04f23

Browse files
committed
remove backend tool from mastra example
1 parent 84515e8 commit 7f04f23

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

typescript-sdk/integrations/mastra/example/src/mastra/agents/tool-based-generative-ui.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,6 @@ export const toolBasedGenerativeUIAgent = new Agent({
1111
You are a helpful haiku assistant that provides the user with a haiku.
1212
`,
1313
model: openai("gpt-4o-mini"),
14-
tools: {
15-
generate_haiku: createTool({
16-
id: "generate_haiku",
17-
description:
18-
"Generate a haiku in Japanese and its English translation. Also select exactly 3 relevant images from the provided list based on the haiku's theme.",
19-
inputSchema: z.object({
20-
japanese: z.array(z.string()).describe("An array of three lines of the haiku in Japanese"),
21-
english: z.array(z.string()).describe("An array of three lines of the haiku in English"),
22-
}),
23-
outputSchema: z.string(),
24-
execute: async ({ context }) => {
25-
return "Haiku generated.";
26-
},
27-
}),
28-
},
2914
memory: new Memory({
3015
storage: new LibSQLStore({
3116
url: "file:../mastra.db", // path is relative to the .mastra/output directory

0 commit comments

Comments
 (0)