Skip to content

Commit 513df8e

Browse files
committed
feat: enhance acpAgent and evaluationAgent, update tsconfig.json
- Added GoogleGenerativeAIProviderOptions import to acpAgent for improved AI integration. - Removed unused UserTier import from evaluationAgent to clean up code. - Updated tsconfig.json to include additional TypeScript files for better project structure and compilation.
1 parent be31e4c commit 513df8e

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/mastra/agents/acpAgent.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { getFileContent, getRepositoryInfo, listRepositories, searchCode } from
1818
import { jsonToCsvTool } from '../tools/json-to-csv.tool';
1919
import { pdfToMarkdownTool } from '../tools/pdf-data-conversion.tool';
2020
import { batchWebScraperTool, contentCleanerTool, htmlToMarkdownTool, linkExtractorTool, webScraperTool } from '../tools/web-scraper-tool';
21-
21+
import { GoogleGenerativeAIProviderOptions } from '@ai-sdk/google';
2222
export const acpAgent = new Agent({
2323
id: 'acp-agent',
2424
name: 'ACP Agent',
@@ -119,13 +119,10 @@ export const acpAgent = new Agent({
119119
providerOptions: {
120120
google: {
121121
thinkingConfig: {
122-
thinkingLevel: 'low',
122+
123123
includeThoughts: true,
124124
thinkingBudget: -1,
125125
},
126-
media_resolution: "MEDIA_RESOLUTION_MEDIUM",
127-
responseModalities: ['TEXT', 'IMAGE'],
128-
maxOutputTokens: 64000,
129126
},
130127
},
131128
};

src/mastra/agents/evaluationAgent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { UserTier } from './editorAgent';
21
import { Agent } from '@mastra/core/agent'
32
import { InternalSpans } from '@mastra/core/ai-tracing'
43
import { googleAIFlashLite } from '../config/google'

tsconfig.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,26 @@
4343
"components.json",
4444
"instrumentation.ts",
4545
".next/types/**/*.ts",
46-
".next/dev/types/**/*.ts"
46+
".next/dev/types/**/*.ts",
47+
"app/**/*.ts",
48+
"app/**/*.tsx",
49+
"src/**/*.ts",
50+
"src/**/*.tsx",
51+
"ui/**/*.ts",
52+
"ui/**/*.tsx",
53+
"lib/**/*.ts",
54+
"hooks/**/*.ts"
4755
],
4856
"exclude": [
4957
"node_modules",
5058
"dist",
51-
".next",
59+
5260
".mastra",
5361
".github",
5462
".cursor",
5563
"public",
5664
"coverage",
57-
"node_modules/**/*.d.ts",
65+
5866
"scripts",
5967
".kilocode",
6068
"docs",

0 commit comments

Comments
 (0)