Interface: AgentProviderLike
Structural shape of the sibling plugin that owns the agent registry - the
slice of @dbx-tools/appkit-mastra’s exports() a turn needs.
Matched structurally, by registered plugin NAME, rather than importing the
Mastra plugin: this package stays a leaf add-on (it depends on no other
dbx-tools runtime package, like node-email), the dependency direction stays
one-way, and any plugin exposing the same get / getDefault pair can back
the endpoint.
Methods
Section titled “Methods”exports()
Section titled “exports()”exports():
object
Returns
Section titled “Returns”createRequestContext()?
Section titled “createRequestContext()?”
optionalcreateRequestContext(options):Promise<unknown>
Builds the per-turn RequestContext the provider’s tools expect. Optional
so an older provider (or a differently-shaped one) still resolves an
agent; the turn simply runs without user-scoped tool context then.
Parameters
Section titled “Parameters”options
Section titled “options”resourceId?
Section titled “resourceId?”string
threadId?
Section titled “threadId?”string
Returns
Section titled “Returns”Promise<unknown>
get(
id):unknown
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”unknown
getDefault()
Section titled “getDefault()”getDefault():
unknown
Returns
Section titled “Returns”unknown