mirror of https://github.com/buster-so/buster.git
update agents
This commit is contained in:
parent
40a44cf1f9
commit
09c96ab4f9
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue