Skip to content

Commit cfd4a5d

Browse files
authored
fix(dojo): update to gpt-4.1.mini (ag-ui-protocol#1235)
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1 parent 2ee9399 commit cfd4a5d

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

apps/client-cli-example/src/agent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ export const agent = new MastraAgent({
1212
name: "AG-UI Agent",
1313
instructions: `
1414
You are a helpful assistant that runs a CLI application.
15-
15+
1616
When helping users get weather details for specific locations, respond:
1717
- Always ask for a location if none is provided.
1818
- If the location name isn’t in English, please translate it
1919
- If giving a location with multiple parts (e.g. "New York, NY"), use the most relevant part (e.g. "New York")
2020
- Include relevant details like humidity, wind conditions, and precipitation
2121
- Keep responses concise but informative
22-
22+
2323
Use the weatherTool to fetch current weather data.
2424
2525
When helping users browse the web, always use a full URL, for example: "https://www.google.com"
2626
Use the browserTool to browse the web.
2727
2828
`,
29-
model: "openai/gpt-4o-mini",
29+
model: "openai/gpt-4.1-mini",
3030
tools: { weatherTool, browserTool },
3131
memory: new Memory({
3232
storage: new LibSQLStore({

apps/dojo/src/files.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@
998998
},
999999
{
10001000
"name": "agentic-chat.ts",
1001-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\nimport { weatherTool } from \"../tools/weather-tool\";\n\nexport const agenticChatAgent = new Agent({\n id: \"agentic_chat\",\n name: \"Agentic Chat\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn’t in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the weatherTool to fetch current weather data.\n`,\n model: \"openai/gpt-4o-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'agentic-chat-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
1001+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\nimport { weatherTool } from \"../tools/weather-tool\";\n\nexport const agenticChatAgent = new Agent({\n id: \"agentic_chat\",\n name: \"Agentic Chat\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn’t in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the weatherTool to fetch current weather data.\n`,\n model: \"openai/gpt-4.1-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'agentic-chat-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
10021002
"language": "ts",
10031003
"type": "file"
10041004
}
@@ -1038,7 +1038,7 @@
10381038
},
10391039
{
10401040
"name": "backend-tool-rendering.ts",
1041-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\nimport { weatherTool } from \"../tools/weather-tool\";\n\nexport const backendToolRenderingAgent = new Agent({\n id: \"backend_tool_rendering\",\n name: \"Backend Tool Rendering\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn’t in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the get_weather tool to fetch current weather data.\n`,\n model: \"openai/gpt-4o-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'backend-tool-rendering-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
1041+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\nimport { weatherTool } from \"../tools/weather-tool\";\n\nexport const backendToolRenderingAgent = new Agent({\n id: \"backend_tool_rendering\",\n name: \"Backend Tool Rendering\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn’t in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the get_weather tool to fetch current weather data.\n`,\n model: \"openai/gpt-4.1-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'backend-tool-rendering-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
10421042
"language": "ts",
10431043
"type": "file"
10441044
}
@@ -1058,7 +1058,7 @@
10581058
},
10591059
{
10601060
"name": "human-in-the-loop.ts",
1061-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\n\nexport const humanInTheLoopAgent = new Agent({\n id: 'human_in_the_loop',\n name: \"Human in the Loop\",\n instructions: `\n You are a helpful task planning assistant that helps users break down tasks into actionable steps.\n\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the \\`generate_task_steps\\` tool to display the suggested steps to the user\n - Do not call the \\`generate_task_steps\\` twice in a row, ever.\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the \\`generate_task_steps\\` tool again\n\n When responding to user requests:\n - Always break down the task into clear, actionable steps\n - Use imperative form for each step (e.g., \"Book flight\", \"Pack luggage\", \"Check passport\")\n - Keep steps concise but descriptive\n - Make sure steps are in logical order\n`,\n model: \"openai/gpt-4o-mini\",\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'human-in-the-loop-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
1061+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\n\nexport const humanInTheLoopAgent = new Agent({\n id: 'human_in_the_loop',\n name: \"Human in the Loop\",\n instructions: `\n You are a helpful task planning assistant that helps users break down tasks into actionable steps.\n\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the \\`generate_task_steps\\` tool to display the suggested steps to the user\n - Do not call the \\`generate_task_steps\\` twice in a row, ever.\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the \\`generate_task_steps\\` tool again\n\n When responding to user requests:\n - Always break down the task into clear, actionable steps\n - Use imperative form for each step (e.g., \"Book flight\", \"Pack luggage\", \"Check passport\")\n - Keep steps concise but descriptive\n - Make sure steps are in logical order\n`,\n model: \"openai/gpt-4.1-mini\",\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'human-in-the-loop-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
10621062
"language": "ts",
10631063
"type": "file"
10641064
}
@@ -1084,7 +1084,7 @@
10841084
},
10851085
{
10861086
"name": "tool-based-generative-ui.ts",
1087-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\n\nexport const toolBasedGenerativeUIAgent = new Agent({\n id: \"tool_based_generative_ui\",\n name: \"Tool Based Generative UI\",\n instructions: `\n You are a helpful haiku assistant that provides the user with a haiku.\n`,\n model: \"openai/gpt-4o-mini\",\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'tool-based-generative-ui-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
1087+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { LibSQLStore } from \"@mastra/libsql\";\n\nexport const toolBasedGenerativeUIAgent = new Agent({\n id: \"tool_based_generative_ui\",\n name: \"Tool Based Generative UI\",\n instructions: `\n You are a helpful haiku assistant that provides the user with a haiku.\n`,\n model: \"openai/gpt-4.1-mini\",\n memory: new Memory({\n storage: new LibSQLStore({\n id: 'tool-based-generative-ui-memory',\n url: \"file:../mastra.db\", // path is relative to the .mastra/output directory\n }),\n }),\n});\n",
10881088
"language": "ts",
10891089
"type": "file"
10901090
}
@@ -1144,7 +1144,7 @@
11441144
},
11451145
{
11461146
"name": "backend-tool-rendering.ts",
1147-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { weatherTool } from \"../tools\";\nimport { getStorage } from \"../storage\";\n\nexport const backendToolRenderingAgent = new Agent({\n id: 'backend_tool_rendering',\n name: \"backend_tool_rendering\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn't in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the weatherTool to fetch current weather data.\n `,\n model: \"openai/gpt-4o-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: getStorage(),\n }),\n});\n",
1147+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { weatherTool } from \"../tools\";\nimport { getStorage } from \"../storage\";\n\nexport const backendToolRenderingAgent = new Agent({\n id: 'backend_tool_rendering',\n name: \"backend_tool_rendering\",\n instructions: `\n You are a helpful weather assistant that provides accurate weather information.\n\n Your primary function is to help users get weather details for specific locations. When responding:\n - Always ask for a location if none is provided\n - If the location name isn't in English, please translate it\n - If giving a location with multiple parts (e.g. \"New York, NY\"), use the most relevant part (e.g. \"New York\")\n - Include relevant details like humidity, wind conditions, and precipitation\n - Keep responses concise but informative\n\n Use the weatherTool to fetch current weather data.\n `,\n model: \"openai/gpt-4.1-mini\",\n tools: { get_weather: weatherTool },\n memory: new Memory({\n storage: getStorage(),\n }),\n});\n",
11481148
"language": "ts",
11491149
"type": "file"
11501150
}
@@ -1164,7 +1164,7 @@
11641164
},
11651165
{
11661166
"name": "human-in-the-loop.ts",
1167-
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { getStorage } from \"../storage\";\n\nexport const humanInTheLoopAgent = new Agent({\n id: 'human_in_the_loop',\n name: \"human_in_the_loop\",\n instructions: `\n You are a helpful task planning assistant that helps users break down tasks into actionable steps.\n\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the \\`generate_task_steps\\` tool to display the suggested steps to the user\n - Do not call the \\`generate_task_steps\\` twice in a row, ever.\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the \\`generate_task_steps\\` tool again\n\n When responding to user requests:\n - Always break down the task into clear, actionable steps\n - Use imperative form for each step (e.g., \"Book flight\", \"Pack luggage\", \"Check passport\")\n - Keep steps concise but descriptive\n - Make sure steps are in logical order\n `,\n model: \"openai/gpt-4o-mini\",\n memory: new Memory({\n storage: getStorage(),\n }),\n});\n",
1167+
"content": "import { Agent } from \"@mastra/core/agent\";\nimport { Memory } from \"@mastra/memory\";\nimport { getStorage } from \"../storage\";\n\nexport const humanInTheLoopAgent = new Agent({\n id: 'human_in_the_loop',\n name: \"human_in_the_loop\",\n instructions: `\n You are a helpful task planning assistant that helps users break down tasks into actionable steps.\n\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the \\`generate_task_steps\\` tool to display the suggested steps to the user\n - Do not call the \\`generate_task_steps\\` twice in a row, ever.\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the \\`generate_task_steps\\` tool again\n\n When responding to user requests:\n - Always break down the task into clear, actionable steps\n - Use imperative form for each step (e.g., \"Book flight\", \"Pack luggage\", \"Check passport\")\n - Keep steps concise but descriptive\n - Make sure steps are in logical order\n `,\n model: \"openai/gpt-4.1-mini\",\n memory: new Memory({\n storage: getStorage(),\n }),\n});\n",
11681168
"language": "ts",
11691169
"type": "file"
11701170
}

apps/dojo/src/mastra/agents/backend-tool-rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const backendToolRenderingAgent = new Agent({
1818
1919
Use the weatherTool to fetch current weather data.
2020
`,
21-
model: "openai/gpt-4o-mini",
21+
model: "openai/gpt-4.1-mini",
2222
tools: { get_weather: weatherTool },
2323
memory: new Memory({
2424
storage: getStorage(),

apps/dojo/src/mastra/agents/human-in-the-loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const humanInTheLoopAgent = new Agent({
2222
- Keep steps concise but descriptive
2323
- Make sure steps are in logical order
2424
`,
25-
model: "openai/gpt-4o-mini",
25+
model: "openai/gpt-4.1-mini",
2626
memory: new Memory({
2727
storage: getStorage(),
2828
}),

integrations/mastra/typescript/examples/src/mastra/agents/agentic-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const agenticChatAgent = new Agent({
1818
1919
Use the weatherTool to fetch current weather data.
2020
`,
21-
model: "openai/gpt-4o-mini",
21+
model: "openai/gpt-4.1-mini",
2222
tools: { get_weather: weatherTool },
2323
memory: new Memory({
2424
storage: new LibSQLStore({

integrations/mastra/typescript/examples/src/mastra/agents/backend-tool-rendering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const backendToolRenderingAgent = new Agent({
1818
1919
Use the get_weather tool to fetch current weather data.
2020
`,
21-
model: "openai/gpt-4o-mini",
21+
model: "openai/gpt-4.1-mini",
2222
tools: { get_weather: weatherTool },
2323
memory: new Memory({
2424
storage: new LibSQLStore({

integrations/mastra/typescript/examples/src/mastra/agents/human-in-the-loop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const humanInTheLoopAgent = new Agent({
2222
- Keep steps concise but descriptive
2323
- Make sure steps are in logical order
2424
`,
25-
model: "openai/gpt-4o-mini",
25+
model: "openai/gpt-4.1-mini",
2626
memory: new Memory({
2727
storage: new LibSQLStore({
2828
id: 'human-in-the-loop-memory',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const toolBasedGenerativeUIAgent = new Agent({
88
instructions: `
99
You are a helpful haiku assistant that provides the user with a haiku.
1010
`,
11-
model: "openai/gpt-4o-mini",
11+
model: "openai/gpt-4.1-mini",
1212
memory: new Memory({
1313
storage: new LibSQLStore({
1414
id: 'tool-based-generative-ui-memory',

0 commit comments

Comments
 (0)