Skip to content

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.

exports(): object

optional createRequestContext(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.

string

string

Promise<unknown>

get(id): unknown

string

unknown

getDefault(): unknown

unknown