@datalayer/agent-runtimes 1.5.118 → 1.5.121
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/dist-embed/datalayer-app-main.js +11 -11
- package/lib/specs/actions.js +72 -9
- package/lib/specs/agents/agents.js +32 -9
- package/lib/specs/apps.js +2 -8
- package/lib/specs/mcpServers.js +66 -31
- package/lib/specs/models.d.ts +8 -1
- package/lib/specs/models.js +40 -2
- package/lib/specs/scenes.js +1 -5
- package/package.json +1 -1
- package/scripts/codegen/generate_models.py +17 -4
package/lib/specs/scenes.js
CHANGED
|
@@ -1213,10 +1213,7 @@ export const MONTH_END_CLOSE_SCENE_0_0_1 = {
|
|
|
1213
1213
|
actors: [],
|
|
1214
1214
|
lines: [],
|
|
1215
1215
|
live: '',
|
|
1216
|
-
setup: [
|
|
1217
|
-
"The agent 'worker-month-end-close:0.0.1' is not enabled.",
|
|
1218
|
-
"The MCP server 'odoo-accounting:0.0.1' is not enabled.",
|
|
1219
|
-
],
|
|
1216
|
+
setup: ["The agent 'worker-month-end-close:0.0.1' is not enabled."],
|
|
1220
1217
|
played: {
|
|
1221
1218
|
at: '2026-10-29T14:17:04+00:00',
|
|
1222
1219
|
where: 'on Datalayer',
|
|
@@ -2428,7 +2425,6 @@ export const SALES_AND_ACCOUNTING_SCENE_0_0_1 = {
|
|
|
2428
2425
|
setup: [
|
|
2429
2426
|
"The agent 'worker-sales-pipeline-board-report:0.0.1' is not enabled.",
|
|
2430
2427
|
"The agent 'worker-accountant:0.0.1' is not enabled.",
|
|
2431
|
-
"The MCP server 'odoo-accounting:0.0.1' is not enabled.",
|
|
2432
2428
|
],
|
|
2433
2429
|
played: {
|
|
2434
2430
|
at: '2026-10-29T14:00:28+00:00',
|
package/package.json
CHANGED
|
@@ -326,12 +326,18 @@ def generate_python_code(specs: list[dict[str, Any]]) -> str:
|
|
|
326
326
|
" return list(AI_MODEL_CATALOGUE.values())",
|
|
327
327
|
"",
|
|
328
328
|
"",
|
|
329
|
+
"def is_decision_model(model: AIModel) -> bool:",
|
|
330
|
+
' """A typed-decision model (Jev): answers typed questions about a state."""',
|
|
331
|
+
' return "decisions" in model.capabilities',
|
|
332
|
+
"",
|
|
333
|
+
"",
|
|
329
334
|
"def is_chat_model(model: AIModel) -> bool:",
|
|
330
335
|
' """A model a chat can run on: not a typed-decision model (Jev), which',
|
|
331
|
-
" answers typed questions about a state and nothing else
|
|
336
|
+
" answers typed questions about a state and nothing else, nor an",
|
|
337
|
+
" embedding model (Titan), which turns texts into vectors. A spec that",
|
|
332
338
|
" states no capability is read as a chat model.",
|
|
333
339
|
' """',
|
|
334
|
-
' return "decisions" not in model.capabilities',
|
|
340
|
+
' return "decisions" not in model.capabilities and "embeddings" not in model.capabilities',
|
|
335
341
|
"",
|
|
336
342
|
"",
|
|
337
343
|
"def list_chat_models() -> list[AIModel]:",
|
|
@@ -503,13 +509,20 @@ def generate_typescript_code(specs: list[dict[str, Any]]) -> str:
|
|
|
503
509
|
" return AI_MODEL_CATALOGUE[AI_MODEL_ALIASES[modelId] ?? modelId];",
|
|
504
510
|
"}",
|
|
505
511
|
"",
|
|
512
|
+
"/** A typed-decision model (Jev): answers typed questions about a state. */",
|
|
513
|
+
"export function isDecisionModel(model: AIModel): boolean {",
|
|
514
|
+
" return (model.capabilities ?? []).includes('decisions');",
|
|
515
|
+
"}",
|
|
516
|
+
"",
|
|
506
517
|
"/**",
|
|
507
518
|
" * A model a chat can run on: not a typed-decision model (Jev), which",
|
|
508
|
-
" * answers typed questions about a state and nothing else
|
|
519
|
+
" * answers typed questions about a state and nothing else, nor an",
|
|
520
|
+
" * embedding model (Titan), which turns texts into vectors. A spec that",
|
|
509
521
|
" * states no capability is read as a chat model.",
|
|
510
522
|
" */",
|
|
511
523
|
"export function isChatModel(model: AIModel): boolean {",
|
|
512
|
-
"
|
|
524
|
+
" const capabilities = model.capabilities ?? [];",
|
|
525
|
+
" return !capabilities.includes('decisions') && !capabilities.includes('embeddings');",
|
|
513
526
|
"}",
|
|
514
527
|
"",
|
|
515
528
|
"/** The models a person choosing a chat model is offered from. */",
|