Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build Mastra AI agents and workflows with guidance on current API lookup, tools, memory, and RAG patterns.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/core-concepts.md
1# Core Concepts Reference23Use this reference when deciding which Mastra primitive to use or when explaining the high-level shape of a Mastra application.45## Agents vs workflows67Agent: Autonomous, makes decisions, uses tools.8Use for open-ended tasks such as support, research, analysis, and tool-using assistants.910Workflow: Structured sequence of steps.11Use for defined processes such as pipelines, approvals, ETL, multi-step business logic, and resumable processes.1213## Key components1415- Tools: Extend agent capabilities through APIs, databases, external services, and deterministic functions.16- Memory: Maintain context through message history, working memory, semantic recall, and observational memory.17- Storage: Persist data with providers such as Postgres, LibSQL, and MongoDB.18