docs/src/course/01-first-agent/04-project-structure.md
Let's check that your project has the correct structure. You should have:
src/mastra directory that contains:
index.ts - The main entry point for your Mastra projectagents/ - Directory containing individual agent filesscorers/ - Directory containing individual scorer filestools/ - Directory containing individual tool filesworkflows/ - Directory containing individual workflow filesIf the CLI created your project, you should see files like:
agents/weather-agent.ts - Example weather agentscorers/weather-scorer.ts - Example weather scorertools/weather-tool.ts - Example weather toolworkflows/weather-workflow.ts - Example weather workflowThis 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.