
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@mastra/agent-builder
Advanced tools
This package is currently experimental and only meant to be used internally to Mastra at the moment, the APIs are subject to change in this period.
This package is currently experimental and only meant to be used internally to Mastra at the moment, the APIs are subject to change in this period.
A specialized AI agent for building production-ready Mastra applications, agents, tools, and workflows from natural language requirements.
npm install @mastra/agent-builder
@mastra/agent-builder
is a meta-agent that helps developers create Mastra applications by:
import { AgentBuilder } from '@mastra/agent-builder';
import { openai } from '@ai-sdk/openai';
const builder = new AgentBuilder({
model: openai('gpt-4'),
summaryModel: openai('gpt-4'),
projectPath: '/path/to/your/project',
});
// Generate an agent from natural language
const result = await builder.generate({ ... })
The AgentBuilder requires a configuration object with:
model
: The primary language model for code generationsummaryModel
: A model for summarizing tool calls and resultsprojectPath
: Path to your Mastra projectinstructions
: Optional additional instructionstools
: Optional additional tools to include// Install packages
const result = await builder.generate('Install @mastra/workflows package with latest version');
// Validate generated code
const validation = await builder.generate('Validate the TypeScript types and linting for src/agents/my-agent.ts');
// Start development server
const serverResult = await builder.generate('Start the development server on port 4200');
// Test API endpoints
const testResult = await builder.generate('Test the /health endpoint at http://localhost:4200');
The AgentBuilder includes specialized memory processors:
Apache-2.0
FAQs
This package is currently experimental and only meant to be used internally to Mastra at the moment, the APIs are subject to change in this period.
The npm package @mastra/agent-builder receives a total of 1,672 weekly downloads. As such, @mastra/agent-builder popularity was classified as popular.
We found that @mastra/agent-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.