File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
typescript-sdk/apps/dojo/src Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -105,5 +105,22 @@ export const mastra = new Mastra({
105105 } ,
106106 } ) ,
107107 } ) ,
108+ tool_based_generative_ui : new Agent ( {
109+ name : "tool_based_generative_ui" ,
110+ instructions : `
111+ You are a helpful assistant for creating haikus.
112+ ` ,
113+ model : openai ( "gpt-4o" ) ,
114+ tools : {
115+ generate_haiku : {
116+ description : "Generate a haiku" ,
117+ parameters : z . object ( {
118+ japanese : z . string ( ) . describe ( "The japanese haiku" ) ,
119+ english : z . string ( ) . describe ( "The english haiku" ) ,
120+ image_names : z . array ( z . string ( ) ) . describe ( "The names of the images" ) ,
121+ } ) ,
122+ } ,
123+ } ,
124+ } ) ,
108125 } ,
109126} ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const menuIntegrations: MenuIntegrationConfig[] = [
3131 {
3232 id : "mastra-agent-local" ,
3333 name : "Mastra Agent (Local)" ,
34- features : [ "agentic_chat" , "shared_state" ] ,
34+ features : [ "agentic_chat" , "shared_state" , "tool_based_generative_ui" ] ,
3535 } ,
3636 {
3737 id : "vercel-ai-sdk" ,
You can’t perform that action at this time.
0 commit comments