From 09c96ab4f99065bca9cc1c1b9c3e1b993e90cdff Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 7 Aug 2025 14:07:20 -0600 Subject: [PATCH] update agents --- .../think-and-prep-agent.ts | 56 +++++++++---------- .../ai/src/utils/models/providers/openai.ts | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts index 05577f3c6..8d8a8c6d2 100644 --- a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts +++ b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts @@ -1,35 +1,35 @@ -import { Agent } from "@mastra/core"; +import { Agent } from '@mastra/core'; import { - executeSql, - messageUserClarifyingQuestion, - respondWithoutAssetCreation, - sequentialThinking, - submitThoughts, -} from "../../tools"; -import { GPT5 } from "../../utils"; -import { Sonnet4 } from "../../utils/models/sonnet-4"; + executeSql, + messageUserClarifyingQuestion, + respondWithoutAssetCreation, + sequentialThinking, + submitThoughts, +} from '../../tools'; +import { GPT5 } from '../../utils'; +import { Sonnet4 } from '../../utils/models/sonnet-4'; const DEFAULT_OPTIONS = { - maxSteps: 25, - temperature: 1, - providerOptions: { - anthropic: { - disableParallelToolCalls: true, - }, - }, + maxSteps: 25, + temperature: 1, + providerOptions: { + anthropic: { + disableParallelToolCalls: true, + }, + }, }; export const thinkAndPrepAgent = new Agent({ - name: "Think and Prep Agent", - instructions: "", // We control the system messages in the step at stream instantiation - model: GPT5, - tools: { - sequentialThinking, - executeSql, - respondWithoutAssetCreation, - submitThoughts, - messageUserClarifyingQuestion, - }, - defaultGenerateOptions: DEFAULT_OPTIONS, - defaultStreamOptions: DEFAULT_OPTIONS, + name: 'Think and Prep Agent', + instructions: '', // We control the system messages in the step at stream instantiation + model: GPT5, + tools: { + sequentialThinking, + executeSql, + respondWithoutAssetCreation, + submitThoughts, + messageUserClarifyingQuestion, + }, + defaultGenerateOptions: DEFAULT_OPTIONS, + defaultStreamOptions: DEFAULT_OPTIONS, }); diff --git a/packages/ai/src/utils/models/providers/openai.ts b/packages/ai/src/utils/models/providers/openai.ts index dc0e44a60..60e227880 100644 --- a/packages/ai/src/utils/models/providers/openai.ts +++ b/packages/ai/src/utils/models/providers/openai.ts @@ -8,4 +8,4 @@ export const openaiModel = (modelId: string) => { // Wrap the model with Braintrust tracing and return it return wrapAISDKModel(openai(modelId)); -}; \ No newline at end of file +};