File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
typescript-sdk/integrations/mastra/example/src/mastra/agents Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments