You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance agent functionality and add new tools
- Updated access control enforcement in tools and workflows to use `RequestContext` and agent-specific runtime context types.
- Added optional fields `userId` and `researchPhase` to `ResearchRuntimeContext` for improved context handling.
- Imported new agents: `calendarAgent`, `bgColorAgent`, and `danePackagePublisher` into the main index.
- Implemented a new tool `colorChangeTool` to change the background color with a defined input schema.
Copy file name to clipboardExpand all lines: src/mastra/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ This folder contains the middleware and high-level components that define Mastra
45
45
46
46
- Use explicit Zod schemas for every tool input/output.
47
47
- Keep tools small and side-effect-free when possible; agents orchestrate tools and handle context.
48
-
- Use `RuntimeContext` to enforce access control in tools and workflows.
48
+
- Use `RequestContext` (per-request) or agent-specific runtime context types (e.g. `EditorRuntimeContext`) to enforce access control in tools and workflows.
0 commit comments