Interface: MastraWriter
The ToolStream-shaped writer the Mastra Genie agent and chart
helpers publish events through. Defined here (vs imported from
@mastra/core) so helpers in @dbx-tools/appkit-mastra can
accept any object with a .write method without dragging
Mastra’s full ToolStream (and its agent / tool typings) into
call sites. The actual Mastra ctx.writer is assignable to
this shape so callers pass it straight through.
Kept as a plain TypeScript interface (vs a zod schema) because
the contract is a method - zod can only validate the shape via
z.custom, which adds noise without buying any runtime check.
Properties
Section titled “Properties”write: (
chunk) =>unknown
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”unknown