MastraAI
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
JoinMastraAI
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
JoinWorkflow runId in logs
calling default*Options dynamic configuration option is not logical
defaultVNextStreamOptions is called nevertheless agent.generate or agent.stream were called.
```
gitlabAgent.generate
defaultVNextStreamOptions called
...Integration Home Assistant with Mastra?
There is no way to use RuntimeContext as actual DI with playground
const gitlabClient = runtimeContext.get("gitlabClient") as GitLabClient;
const gitlabClient = runtimeContext.get("gitlabClient") as GitLabClient;
createTool only uses inputSchema for validation
runtimeContext type safety
Pass runtime configuration variables to tools through a type-safe runtimeContext.I may be missing something but I can't see how it is type safe. Type definition for
execute option of createTool is defined as RuntimeContext without any generics making it affectively to store everything as unknown....How to achieve LLM structured output in Mastra ai-sdk compatible streaming.
Tools getting called sequentially
workflow.agentic-loop.step.executionWorkflow with each calling a tool (see screenshot). In cases where the same agent runs the tools in parallel, I see a single workflow.agentic-loop.step.executionWorkflow that calls multiple tools (workflow.executionWorkflow.step.toolCallStep).
I was hoping there was a flag I could set to force parallel tool calls within my workflow step. I know maxSteps is an option on an agent, but it defaults to 1 anyways so that probably isn't it.
Any advice here would be amazing!...
Stream order issue in nested agent via tool call
Playground incorrect rendering for workflow execution
.map() step calls are rendered as mapping_undefined. If workflow has several mapping steps they render same execution state at the same time. Let's imagine I have workflow:
```
workflow...Playground mastra 0.14.1-alpha.0 resets the state of agent page every time I switch back to it
I'm not sure auth, middleware and input/output processors difference
Duplicate responses coming from Mastra
`.dowhile` and `.dountil` `runCount` is stuck at `-1`
dowhile and dountil are the same function, just reverse the true to false, vice versa, why have 2? I was under the impression that dowhile ran its condition check before the loop whereas dountil ran its check after the loop, im that case it would warrant seperate functions.
```typescript..."Internal agent did not generate structured output"
Better errors please!!
Removing the expected functionality for generate broke my workflow
Mastra x assistant-ui : documentation differs, error during integration
Langfuse tracing not working
Updated to Mastra 0.19 everything breaks