Interface: MastraAssistantController\<TValues\>
Controller exposed to descendants through useMastraAssistant.
Type Parameters
Section titled “Type Parameters”TValues
Section titled “TValues”TValues extends Record<string, unknown>
Properties
Section titled “Properties”close: () =>
void
Returns
Section titled “Returns”void
isOpen
Section titled “isOpen”isOpen:
boolean
open: (
requestContext?) =>void
Parameters
Section titled “Parameters”requestContext?
Section titled “requestContext?”MastraRequestContextInput<TValues>
Returns
Section titled “Returns”void
requestContext
Section titled “requestContext”requestContext:
MastraRequestContextInput<TValues> |undefined
setRequestContext
Section titled “setRequestContext”setRequestContext: (
requestContext?) =>void
Parameters
Section titled “Parameters”requestContext?
Section titled “requestContext?”MastraRequestContextInput<TValues>
Returns
Section titled “Returns”void
toggle
Section titled “toggle”toggle: () =>
void
Returns
Section titled “Returns”void