@dbx-tools/appkit-mastra 0.3.29 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/model.ts CHANGED
@@ -62,6 +62,13 @@ export interface BuildModelOverrides {
62
62
  * while `agent.stream` is inside the `asUser(req)` scope so tokens
63
63
  * are user-scoped; outside an active user context the workspace
64
64
  * client falls back to the service principal.
65
+ *
66
+ * Endpoint precedence: the per-request override
67
+ * ({@link MASTRA_MODEL_OVERRIDE_KEY}, only when `config.modelOverride` allows
68
+ * it), then {@link BuildModelOverrides.modelId} from the agent / plugin
69
+ * config, then `DATABRICKS_SERVING_ENDPOINT_NAME`. With none of those set the
70
+ * capability class and fallback ladder in `@dbx-tools/model` choose the
71
+ * endpoint.
65
72
  */
66
73
  export async function buildModel(
67
74
  config: MastraPluginConfig,