896 B
896 B
Verifying Project Structure
Let's check that your project has the correct structure. You should have:
- A
src/mastradirectory that contains:index.ts- The main entry point for your Mastra projectagents/- Directory containing individual agent filestools/- Directory containing individual tool filesworkflows/- Directory containing individual workflow files
If the CLI created your project, you should see files like:
agents/weather-agent.ts- Example weather agenttools/weather-tool.ts- Example weather toolworkflows/weather-workflow.ts- Example weather workflow
This structure is important because it follows the Mastra convention for organizing your code. The index.ts file is the main entry point for your Mastra project, while the agents and tools directories contain the definitions for your agents and tools, respectively.