update agents

This commit is contained in:
Nate Kelley 2025-08-07 14:07:20 -06:00
parent 40a44cf1f9
commit 09c96ab4f9
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 29 additions and 29 deletions

View File

@ -1,35 +1,35 @@
import { Agent } from "@mastra/core"; import { Agent } from '@mastra/core';
import { import {
executeSql, executeSql,
messageUserClarifyingQuestion, messageUserClarifyingQuestion,
respondWithoutAssetCreation, respondWithoutAssetCreation,
sequentialThinking, sequentialThinking,
submitThoughts, submitThoughts,
} from "../../tools"; } from '../../tools';
import { GPT5 } from "../../utils"; import { GPT5 } from '../../utils';
import { Sonnet4 } from "../../utils/models/sonnet-4"; import { Sonnet4 } from '../../utils/models/sonnet-4';
const DEFAULT_OPTIONS = { const DEFAULT_OPTIONS = {
maxSteps: 25, maxSteps: 25,
temperature: 1, temperature: 1,
providerOptions: { providerOptions: {
anthropic: { anthropic: {
disableParallelToolCalls: true, disableParallelToolCalls: true,
}, },
}, },
}; };
export const thinkAndPrepAgent = new Agent({ export const thinkAndPrepAgent = new Agent({
name: "Think and Prep Agent", name: 'Think and Prep Agent',
instructions: "", // We control the system messages in the step at stream instantiation instructions: '', // We control the system messages in the step at stream instantiation
model: GPT5, model: GPT5,
tools: { tools: {
sequentialThinking, sequentialThinking,
executeSql, executeSql,
respondWithoutAssetCreation, respondWithoutAssetCreation,
submitThoughts, submitThoughts,
messageUserClarifyingQuestion, messageUserClarifyingQuestion,
}, },
defaultGenerateOptions: DEFAULT_OPTIONS, defaultGenerateOptions: DEFAULT_OPTIONS,
defaultStreamOptions: DEFAULT_OPTIONS, defaultStreamOptions: DEFAULT_OPTIONS,
}); });

View File

@ -8,4 +8,4 @@ export const openaiModel = (modelId: string) => {
// Wrap the model with Braintrust tracing and return it // Wrap the model with Braintrust tracing and return it
return wrapAISDKModel(openai(modelId)); return wrapAISDKModel(openai(modelId));
}; };