Skip to content

Commit b95a2e9

Browse files
authored
Merge pull request #38 from ssdeanx/develop
feat: Update agent configurations and dependencies
2 parents 8906b30 + cabab94 commit b95a2e9

25 files changed

Lines changed: 104 additions & 168 deletions

package-lock.json

Lines changed: 47 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
"multer": "^2.0.2",
215215
"glob": "^13.0.0",
216216
"body-parser": "^2.2.1",
217-
"zod": "^4.1.13",
218217
"jws": "^4.0.1"
219218
}
220219
}

src/mastra/agents/acpAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const acpAgent = new Agent({
9090
includeThoughts: true,
9191
thinkingBudget: -1,
9292
},
93-
responseModalities: ['TEXT', 'IMAGE'],
93+
responseModalities: ['TEXT'],
9494
} satisfies GoogleGenerativeAIProviderOptions,
9595
},
9696
};

src/mastra/agents/businessLegalAgents.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ ${PGVECTOR_PROMPT}
9999
google: {
100100

101101
thinkingConfig: {
102-
thinkingLevel: 'high',
103102
includeThoughts: true,
104103
thinkingBudget: -1,
105104
},
106105
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
107-
responseModalities: ['TEXT', 'IMAGE'],
106+
responseModalities: ['TEXT'],
108107
} satisfies GoogleGenerativeAIProviderOptions,
109108
}
110109
}
@@ -202,11 +201,10 @@ You are a Senior Contract Analyst. Analyze legal documents for risks, obligation
202201
google: {
203202
structuredOutput: true,
204203
thinkingConfig: {
205-
thinkingLevel: 'high',
206204
includeThoughts: true,
207205
thinkingBudget: -1,
208206
},
209-
responseModalities: ['TEXT', 'IMAGE'],
207+
responseModalities: ['TEXT'],
210208
}
211209
}
212210
}
@@ -288,11 +286,10 @@ You are a Compliance Officer. Monitor regulatory compliance and identify risks a
288286
google: {
289287
structuredOutput: true,
290288
thinkingConfig: {
291-
thinkingLevel: 'high',
292289
includeThoughts: true,
293290
thinkingBudget: -1,
294291
},
295-
responseModalities: ['TEXT', 'IMAGE'],
292+
responseModalities: ['TEXT'],
296293
}
297294
}
298295
}
@@ -309,10 +306,6 @@ You are a Compliance Officer. Monitor regulatory compliance and identify risks a
309306
htmlToMarkdownTool,
310307
contentCleanerTool,
311308
googleScholarTool,
312-
google_search: googleTools.googleSearch({
313-
mode: "MODE_DYNAMIC",
314-
dynamicThreshold: 0.7,
315-
}),
316309
},
317310
memory: pgMemory,
318311

@@ -379,11 +372,10 @@ You are a Chief Strategy Officer with legal expertise. Align business strategy w
379372
google: {
380373
structuredOutput: true,
381374
thinkingConfig: {
382-
thinkingLevel: 'high',
383375
includeThoughts: true,
384376
thinkingBudget: -1,
385377
},
386-
responseModalities: ['TEXT', 'IMAGE'],
378+
responseModalities: ['TEXT'],
387379
}
388380
}
389381
}

src/mastra/agents/calendarAgent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ Current user: ${userId ?? 'anonymous'}`,
3838
providerOptions: {
3939
google: {
4040
thinkingConfig: {
41-
thinkingLevel: 'low',
4241
includeThoughts: true,
4342
thinkingBudget: -1,
4443
},
45-
responseModalities: ['TEXT', 'IMAGE'],
44+
responseModalities: ['TEXT'],
4645
} satisfies GoogleGenerativeAIProviderOptions,
4746
},
4847
};

src/mastra/agents/codingAgents.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,11 @@ Always consider maintainability, scalability, and testability in your recommenda
9090
providerOptions: {
9191
google: {
9292
thinkingConfig: {
93-
thinkingLevel: userTier === 'enterprise' ? 'high' : 'low',
9493
includeThoughts: true,
9594
thinkingBudget: -1,
9695
},
9796
mediaResolution: 'MEDIA_RESOLUTION_LOW',
98-
responseModalities: ['TEXT', 'IMAGE'],
97+
responseModalities: ['TEXT'],
9998
cachedContent: 'Repo Name, Description, Key Modules, Recent Commits',
10099
} satisfies GoogleGenerativeAIProviderOptions,
101100
}
@@ -199,8 +198,8 @@ Be constructive and educational in feedback.`,
199198
providerOptions: {
200199
google: {
201200
thinkingConfig: {
202-
thinkingLevel: userTier === 'enterprise' ? 'high' : 'medium',
203201
includeThoughts: true,
202+
thinkingBudget: -1,
204203
},
205204
responseModalities: ['TEXT'],
206205
} satisfies GoogleGenerativeAIProviderOptions,
@@ -309,8 +308,8 @@ Always use Vitest syntax: describe, it, expect, vi.mock, vi.fn.`,
309308
providerOptions: {
310309
google: {
311310
thinkingConfig: {
312-
thinkingLevel: userTier === 'enterprise' ? 'high' : 'medium',
313311
includeThoughts: true,
312+
thinkingBudget: -1,
314313
},
315314
responseModalities: ['TEXT'],
316315
} satisfies GoogleGenerativeAIProviderOptions,
@@ -415,7 +414,7 @@ For each refactoring:
415414
providerOptions: {
416415
google: {
417416
thinkingConfig: {
418-
thinkingLevel: userTier === 'enterprise' ? 'high' : 'medium',
417+
thinkingBudget: -1,
419418
includeThoughts: true,
420419
},
421420
responseModalities: ['TEXT'],

src/mastra/agents/contentStrategistAgent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ EXAMPLE FLOW:
8181
providerOptions: {
8282
google: {
8383
thinkingConfig: {
84-
thinkingLevel: 'medium',
8584
includeThoughts: true,
8685
thinkingBudget: -1,
8786
},
8887
mediaResolution: 'MEDIA_RESOLUTION_MEDIUM',
89-
responseModalities: ['TEXT', 'IMAGE'],
88+
responseModalities: ['TEXT'],
9089
} satisfies GoogleGenerativeAIProviderOptions,
9190
}
9291
}

src/mastra/agents/copywriterAgent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,10 @@ Provide the final content in a clear, well-structured format appropriate for the
115115
providerOptions: {
116116
google: {
117117
thinkingConfig: {
118-
thinkingLevel: 'medium',
119118
includeThoughts: true,
120119
thinkingBudget: -1,
121120
},
122-
responseModalities: ['TEXT', 'IMAGE'],
121+
responseModalities: ['TEXT'],
123122
mediaResolution: 'MEDIA_RESOLUTION_LOW',
124123
} satisfies GoogleGenerativeAIProviderOptions,
125124
}

src/mastra/agents/csv_to_excalidraw.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,10 @@ Structure:
164164
providerOptions: {
165165
google: {
166166
thinkingConfig: {
167-
thinkingLevel: 'medium',
168167
includeThoughts: true,
169168
thinkingBudget: -1,
170169
},
171-
responseModalities: ['TEXT', 'IMAGE'],
170+
responseModalities: ['TEXT'],
172171
} satisfies GoogleGenerativeAIProviderOptions,
173172
}
174173
}

src/mastra/agents/dane.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ export const daneCommitMessage = new Agent({
2929
providerOptions: {
3030
google: {
3131
thinkingConfig: {
32-
thinkingLevel: 'medium',
3332
includeThoughts: true,
3433
thinkingBudget: -1,
3534
},
36-
responseModalities: ['TEXT', 'IMAGE'],
35+
responseModalities: ['TEXT'],
3736
} satisfies GoogleGenerativeAIProviderOptions,
3837
}
3938
}
@@ -58,11 +57,10 @@ export const daneIssueLabeler = new Agent({
5857
providerOptions: {
5958
google: {
6059
thinkingConfig: {
61-
thinkingLevel: 'medium',
6260
includeThoughts: true,
6361
thinkingBudget: -1,
6462
},
65-
responseModalities: ['TEXT', 'IMAGE'],
63+
responseModalities: ['TEXT'],
6664
} satisfies GoogleGenerativeAIProviderOptions,
6765
}
6866
}
@@ -92,11 +90,10 @@ export const daneLinkChecker = new Agent({
9290
providerOptions: {
9391
google: {
9492
thinkingConfig: {
95-
thinkingLevel: 'low',
9693
includeThoughts: true,
9794
thinkingBudget: -1,
9895
},
99-
responseModalities: ['TEXT', 'IMAGE'],
96+
responseModalities: ['TEXT'],
10097
} satisfies GoogleGenerativeAIProviderOptions,
10198
}
10299
}
@@ -128,11 +125,10 @@ export const daneChangeLog = new Agent({
128125
providerOptions: {
129126
google: {
130127
thinkingConfig: {
131-
thinkingLevel: 'medium',
132128
includeThoughts: true,
133129
thinkingBudget: -1,
134130
},
135-
responseModalities: ['TEXT', 'IMAGE'],
131+
responseModalities: ['TEXT'],
136132
} satisfies GoogleGenerativeAIProviderOptions,
137133
}
138134
}
@@ -189,11 +185,10 @@ export const dane = new Agent({
189185
providerOptions: {
190186
google: {
191187
thinkingConfig: {
192-
thinkingLevel: 'high',
193188
includeThoughts: true,
194189
thinkingBudget: -1,
195190
},
196-
responseModalities: ['TEXT', 'IMAGE'],
191+
responseModalities: ['TEXT'],
197192
} satisfies GoogleGenerativeAIProviderOptions,
198193
}
199194
}

0 commit comments

Comments
 (0)