Standalone Agent Scorers storage
i am using standalone mastra agents without a mastra instance, where do i put a storage object so i could save these evals and scorers results such as when having a mstra instance + server?
This is my code:
scorers: {
relevancy: {
scorer: createAnswerRelevancyScorer({ model: openai("gpt-4o-mini") }),
sampling: { type: "ratio", rate: 0.5 }
},
safety: {
scorer: createToxicityScorer({ model: openai("gpt-4o-mini") }),
sampling: { type: "ratio", rate: 1 }
},
}
Using in my backend agent.stream() and agent.generate(),
I except to see the scorers results stored in a db that i will define to the agent somewhere
1 Reply
Hey! You will still need to use a
Mastra object to register your agents. This, however, does not mean you have to use the Mastra server. The Mastra class does not need the server to work 😉