Function: useMastraConfig()
useMastraConfig():
object
Read the Mastra plugin’s clientConfig() payload (basePath,
default agent, registered agent list). One call per render; values
are cached at boot by usePluginClientConfig.
Returns
Section titled “Returns”object
agents
Section titled “agents”agents:
string[]
backgroundTurns?
Section titled “backgroundTurns?”
optionalbackgroundTurns?:boolean
basePath
Section titled “basePath”basePath:
string
chatAlwaysAvailable?
Section titled “chatAlwaysAvailable?”
optionalchatAlwaysAvailable?:boolean
defaultAgent
Section titled “defaultAgent”defaultAgent:
string
feedbackEnabled?
Section titled “feedbackEnabled?”
optionalfeedbackEnabled?:boolean