Skip to content

Commit f3546bb

Browse files
committed
npm update & switch to wipro provider
1 parent 2671eff commit f3546bb

8 files changed

Lines changed: 842 additions & 1095 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v24.13.0
1+
v24.14.0

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@
2626
},
2727
"dependencies": {
2828
"@mastra/auth-auth0": "^1.0.1",
29-
"@mastra/core": "^1.10.0",
29+
"@mastra/core": "^1.15.0",
3030
"@mastra/evals": "^1.1.2",
31-
"@mastra/libsql": "^1.6.4",
32-
"@mastra/loggers": "^1.0.2",
33-
"@mastra/memory": "^1.6.1",
34-
"@mastra/observability": "^1.3.1",
35-
"@mastra/pg": "^1.7.2",
31+
"@mastra/libsql": "^1.7.1",
32+
"@mastra/loggers": "^1.0.3",
33+
"@mastra/memory": "^1.9.0",
34+
"@mastra/observability": "^1.5.1",
35+
"@mastra/pg": "^1.8.2",
3636
"@topcoder/wipro-ai-sdk-provider": "git+https://git.topcoder.com/Topcoder-Platform/Wipro-Provider-AI-SDK.git",
37-
"ai": "^6.0.105",
38-
"ai-sdk-ollama": "^3.8.0",
37+
"ai": "^6.0.134",
38+
"ai-sdk-ollama": "^3.8.1",
3939
"tc-core-library-js": "^2.4.1",
4040
"zod": "^4.3.6"
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^10.0.1",
44-
"@types/node": "^25.3.3",
45-
"eslint": "^10.0.2",
46-
"mastra": "^1.3.7",
44+
"@types/node": "^25.5.0",
45+
"eslint": "^10.1.0",
46+
"mastra": "^1.3.14",
4747
"prettier": "^3.8.1",
4848
"typescript": "^5.9.3",
49-
"typescript-eslint": "^8.56.1",
50-
"vitest": "^4.0.18"
49+
"typescript-eslint": "^8.57.1",
50+
"vitest": "^4.1.0"
5151
}
5252
}

pnpm-lock.yaml

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

src/mastra/agents/challenge/challenge-parser-agent.ts

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Agent } from '@mastra/core/agent';
2-
import { ollama } from '../../../utils';
2+
import { wipro } from '../../../utils';
33

44
/**
55
* Master agent responsible for parsing Topcoder challenge specifications.
@@ -14,22 +14,11 @@ import { ollama } from '../../../utils';
1414
export const challengeParserAgent = new Agent({
1515
id: 'challenge-parser-agent',
1616
name: 'Challenge Specification Parser',
17-
model: ollama('qwen3:latest', {
18-
options: {
19-
// Sampling — near-deterministic for strict JSON schema compliance
20-
temperature: 0.1,
21-
top_k: 40,
22-
top_p: 0.9,
23-
24-
// Context window — system prompt (~1.2K tok) + skill activations (~3K tok)
25-
// + full challenge spec (some specs are very long)
26-
num_ctx: 32768,
27-
28-
// Generation limit — enough for structured JSON with many requirements, groups, tech stack, etc.
29-
num_predict: 8192,
30-
31-
seed: 42, // Fixed seed for reproducibility during development
32-
},
17+
model: wipro.chatModel('gpt-5-chat', {
18+
temperature: 0.1,
19+
topK: 40,
20+
topP: 0.9,
21+
maxOutputTokens: 16384,
3322
}),
3423
instructions: {
3524
role: 'system',

src/mastra/agents/jd/jd-rewriter-agent.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
import { Agent } from '@mastra/core/agent';
2-
import { ollama } from '../../../utils';
2+
import { wipro } from '../../../utils';
33

44
export const jdRewriterAgent = new Agent({
55
id: 'jd-rewriter-agent',
66
name: 'Job Description Rewriter',
7-
model: ollama('mistral:latest', {
8-
options: {
9-
temperature: 0.3,
10-
top_k: 40,
11-
top_p: 0.9,
12-
repeat_penalty: 1.1,
13-
repeat_last_n: 128,
14-
num_ctx: 16384,
15-
num_predict: 8192,
16-
num_batch: 256,
17-
},
7+
model: wipro.chatModel('gpt-5-chat', {
8+
temperature: 0.3,
9+
topK: 40,
10+
topP: 0.9,
11+
maxOutputTokens: 16384,
1812
}),
1913
instructions: {
2014
role: 'system',

src/mastra/agents/skills/skills-matching-agent.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Agent } from '@mastra/core/agent';
22
import { Memory } from '@mastra/memory';
3-
import { ollama } from '../../../utils/providers/ollama';
3+
import { wipro } from '../../../utils';
44
import { PostgresStore } from '@mastra/pg';
55
import { instanceScorers } from '../../scorers/instance-scorers';
66

@@ -26,13 +26,9 @@ Output requirements:
2626
- No prose, no markdown, no extra keys.
2727
`,
2828
},
29-
model: ollama('mistral:latest', {
30-
options: {
31-
temperature: 0.1,
32-
top_p: 0.5,
33-
repeat_penalty: 1.1,
34-
num_predict: 2048,
35-
},
29+
model: wipro.chatModel('gpt-5-chat', {
30+
temperature: 0.1,
31+
topP: 0.5,
3632
}),
3733
scorers: {
3834
answerRelevancy: {

src/mastra/workflows/challenge/challenge-context-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ const parseChallengeContext = createStep({
468468
// Scorecard Fetch Helper
469469
// ---------------------------------------------------------------------------
470470

471-
const SCORECARD_API_BASE = process.env.TC_API_BASE_URL ?? 'https://api.topcoder.com/v6';
471+
const SCORECARD_API_BASE = process.env.TC_API_BASE ?? 'https://api.topcoder.com/v6';
472472

473473
/**
474474
* Fetches the full scorecard (with groups → sections → questions) from the

src/mastra/workspaces/ai.workspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export const aiWorkspace = new Workspace({
66
readOnly: true
77
}),
88
bm25: true,
9-
autoIndexPaths: ['/'],
10-
skills: ['/skills'],
9+
autoIndexPaths: [''],
10+
skills: ['skills'],
1111
});
1212

1313
await aiWorkspace.init();

0 commit comments

Comments
 (0)