@dbx-tools/appkit-mastra 0.3.29 → 0.3.30
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/README.md +86 -15
- package/index.ts +3 -0
- package/package.json +10 -10
- package/src/agents.ts +12 -11
- package/src/chart.ts +69 -38
- package/src/config.ts +170 -18
- package/src/defaults.ts +133 -0
- package/src/filesystems.ts +17 -5
- package/src/genie.ts +80 -39
- package/src/history.ts +5 -2
- package/src/model.ts +7 -0
- package/src/plugin.ts +469 -194
- package/src/rest.ts +5 -2
- package/src/server.ts +2 -1
- package/src/serving-sanitize.ts +15 -5
- package/src/storage-schema.ts +4 -1
- package/src/threads.ts +10 -3
- package/src/validation.ts +22 -0
- package/test/config.test.ts +64 -0
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,
|