Function: useMastraAssistant()
useMastraAssistant<
TValues>():MastraAssistantController<TValues>
Access the nearest persistent assistant from any descendant button or page.
Type Parameters
Section titled “Type Parameters”TValues
Section titled “TValues”TValues extends Record<string, unknown> = Record<string, unknown>
Returns
Section titled “Returns”MastraAssistantController<TValues>