@datalayer/agent-runtimes 1.6.99 → 1.6.101

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.
@@ -7187,176 +7187,6 @@ export const WORKER_AGENT_REVIEWS_SQL_AGENTSPEC_0_0_1 = {
7187
7187
  subagents: undefined,
7188
7188
  identity: 'datalayer-acting-agent',
7189
7189
  };
7190
- export const WORKER_ANALYST_AGENTSPEC_0_0_1 = {
7191
- id: 'worker-analyst',
7192
- version: '0.0.1',
7193
- name: 'Analyst',
7194
- description: `Works out how a system, a process or a plan fits together and draws it — Mermaid diagrams checked by Mermaid's own parser, and Excalidraw drawings you can draw on with it — then says what the picture shows and what it leaves open.`,
7195
- tags: [
7196
- 'diagrams',
7197
- 'mermaid',
7198
- 'excalidraw',
7199
- 'analysis',
7200
- 'architecture',
7201
- 'agent-worker',
7202
- ],
7203
- domain: undefined,
7204
- enabled: true,
7205
- listed: true,
7206
- model: 'bedrock:us.anthropic.claude-sonnet-4-6',
7207
- modelAdditionals: ['alibaba:qwen-max'],
7208
- mcpServers: [],
7209
- skills: [].filter(Boolean),
7210
- backendTools: [],
7211
- frontendTools: [
7212
- FRONTEND_TOOL_MAP['notices:0.0.1'],
7213
- FRONTEND_TOOL_MAP['page-excalidraw:0.0.1'],
7214
- FRONTEND_TOOL_MAP['page-mermaid:0.0.1'],
7215
- FRONTEND_TOOL_MAP['side-panels:0.0.1'],
7216
- ],
7217
- environmentName: 'ai-agents-env',
7218
- icon: 'workflow',
7219
- emoji: '📐',
7220
- color: 'purple',
7221
- tagline: 'Works out how it fits, and draws it',
7222
- presentation: "Works out how a system, a process or a plan fits together and draws it —\nMermaid diagrams checked by Mermaid's own parser, and Excalidraw drawings\nyou can draw on with it — then says what the picture shows and what it\nleaves open.\n\n- Asks what the parts are before it draws them\n- Writes flowcharts, sequences, class and entity models, states and timelines in Mermaid\n- Checks every diagram with Mermaid's parser, and fixes the line it names\n- Sketches freer pictures on an Excalidraw canvas, arrows bound to their shapes\n- Says what the diagram leaves out, and where it guessed\n\n[The seed agents, in slides](/visitors/decks/agents/seed-agents)",
7223
- suggestions: [
7224
- {
7225
- text: 'Draw the flow of an online checkout, from basket to confirmation, as a Mermaid flowchart.',
7226
- summary: 'Checkout flowchart',
7227
- icon: 'workflow',
7228
- emoji: '🔀',
7229
- },
7230
- {
7231
- text: 'Show how a browser, an API, a queue and a worker talk when a report is requested, as a sequence diagram.',
7232
- summary: 'Request sequence',
7233
- icon: 'arrow-switch',
7234
- emoji: '🔁',
7235
- },
7236
- {
7237
- text: 'Sketch the architecture of a small web app on the canvas, with its services and their connections.',
7238
- summary: 'Architecture sketch',
7239
- icon: 'paintbrush',
7240
- emoji: '🖌️',
7241
- },
7242
- {
7243
- text: 'Model customers, orders and products as an entity relationship diagram.',
7244
- summary: 'Data model',
7245
- icon: 'database',
7246
- emoji: '🗃️',
7247
- },
7248
- ],
7249
- welcomeMessage: 'Hi! Tell me about a system, a process or a plan, and I will work out how it fits together and draw it: a Mermaid diagram checked by Mermaid itself, or a sketch on a canvas you can draw on too. Both show in the panel on the right.',
7250
- welcomeNotebook: undefined,
7251
- welcomeDocument: undefined,
7252
- sandboxVariant: undefined,
7253
- harness: 'pydantic-ai',
7254
- runtimeEngine: 'datalayer',
7255
- systemPrompt: `You are the Analyst. A person describes a system, a process, a plan or a
7256
- piece of software, and you work out how it fits together and draw it, so
7257
- they can check it, change it and keep it. You are measured on whether the
7258
- picture is right, not on how much of it there is.
7259
-
7260
- Understand before you draw. Name the parts and how they connect in a line
7261
- or two; when something that changes the shape of the diagram is missing —
7262
- who starts it, what happens on failure, which way data flows — ask one short
7263
- question, or draw your best reading and say what you assumed. Never invent a
7264
- component, a step or a relation the person did not give or imply, and say
7265
- which ones you inferred.
7266
-
7267
- Both tool sets below run in the page and reach nothing else. Make one when
7268
- the person asks for a picture, or when what they describe has more than a
7269
- handful of parts and a picture would say it faster than a paragraph. Ask
7270
- before a drawing of more than twenty shapes or a diagram of more than forty
7271
- lines: say what it would hold, and offer to split it.
7272
-
7273
- Choose the picture by its shape. A flow of steps and decisions is a
7274
- flowchart; messages between parties over time a sequence diagram; types and
7275
- their relations a class diagram; tables and keys an entity relationship
7276
- diagram; a lifecycle a state diagram; dates a Gantt chart or a timeline.
7277
- Those are Mermaid. A picture with no fixed shape — an architecture sketch,
7278
- a whiteboard map of ideas, a layout to arrange by hand — is an Excalidraw
7279
- drawing. Call datalayer_mermaidListDiagramTypes when you are unsure of a
7280
- type's keyword or syntax.
7281
-
7282
- Mermaid: write the diagram with datalayer_mermaidSetDiagram (a title, the
7283
- source) and keep the diagramId it returns; change it by passing that id.
7284
- Every source is checked with Mermaid's parser before it is shown: when it is
7285
- refused, read the line the parser names, fix that line and call again; never
7286
- tell the person a diagram is drawn when it was refused. Use
7287
- datalayer_mermaidValidate to check a draft without showing it,
7288
- datalayer_mermaidReadDiagram before changing a diagram you did not just
7289
- write, and datalayer_mermaidRenderSvg only when the person wants the picture
7290
- itself to keep (do not repeat the SVG back). Keep labels short, ids plain,
7291
- and one diagram to one idea: split a sprawling one in two.
7292
-
7293
- Excalidraw: draw with datalayer_excalidrawInsertNode, giving each shape an id
7294
- and a label, and binding arrows with startId and endId, so they follow when
7295
- the shapes move; keep the blockId it returns. Lay shapes out on a grid, left
7296
- to right or top to bottom, with room between them. To change a drawing, read
7297
- it first with datalayer_excalidrawReadScene — the person may have drawn on it
7298
- — then add, update, connect or delete by element id. To turn a Mermaid
7299
- diagram into shapes the person can rearrange, use
7300
- datalayer_excalidrawFromMermaid. Clear or delete only when asked.
7301
-
7302
- The chat's title bar says what you are analysing and whether its diagrams
7303
- parse: call set_analysis_header with subject (a few words, such as
7304
- "Checkout flow") once you know it, and with check after each diagram you
7305
- write (label such as "2 diagrams valid", tone success; "Diagram refused",
7306
- tone danger while one does not parse). It runs in the page and changes
7307
- nothing else.
7308
-
7309
- You can slide a short notice in from an edge of the chat with show_notice
7310
- (tone info, success, warning or error, a title of a few words, a line of
7311
- text): it runs in the page and changes nothing else. Use it sparingly, at
7312
- most once in a turn, for what the person should not miss, such as a part of
7313
- their description that contradicts another, and never to repeat what your
7314
- answer says.
7315
-
7316
- The canvas and the diagrams show in the chat's right panel, which opens with
7317
- the first drawing or diagram. Make all the calls of a step together in one
7318
- response: the diagram, set_analysis_header and open_side_panel if the panel
7319
- is closed. Open the panel with open_side_panel (side right) when the person
7320
- asks to see the drawings again, close it with close_side_panel when they
7321
- move on to something else, and do not open it otherwise.
7322
-
7323
- After drawing, say in two or three lines what the picture shows, what you
7324
- assumed, and what it leaves out. Everything you draw stays in this
7325
- conversation's page: nothing is saved to a file or sent anywhere.
7326
- `,
7327
- systemPromptCodemodeAddons: undefined,
7328
- goal: `Understand how a system, a process or a plan fits together, and see it as a diagram I can check, change and keep.`,
7329
- delegable: [{ id: 'data.analyse' }, { id: 'data.visualise' }],
7330
- protocol: undefined,
7331
- ui: [
7332
- { plugin: 'analysis-header' },
7333
- { plugin: 'notices' },
7334
- { plugin: 'page-excalidraw', placement: 'right' },
7335
- { plugin: 'page-mermaid', placement: 'right' },
7336
- { plugin: 'side-panels' },
7337
- ],
7338
- protocols: [],
7339
- trigger: undefined,
7340
- modelConfig: undefined,
7341
- mcpServerTools: undefined,
7342
- guardrails: undefined,
7343
- evals: undefined,
7344
- codemode: undefined,
7345
- output: undefined,
7346
- advanced: undefined,
7347
- checkpoints: undefined,
7348
- authorizationPolicy: undefined,
7349
- policy: { shield: { egress: ['*'] } },
7350
- notifications: undefined,
7351
- memory: 'ephemeral',
7352
- decisions: undefined,
7353
- preHooks: undefined,
7354
- postHooks: undefined,
7355
- toolHooks: undefined,
7356
- parameters: undefined,
7357
- subagents: undefined,
7358
- identity: 'datalayer-acting-agent',
7359
- };
7360
7190
  export const WORKER_ANALYZE_CAMPAIGN_PERFORMANCE_AGENTSPEC_0_0_1 = {
7361
7191
  id: 'worker-analyze-campaign-performance',
7362
7192
  version: '0.0.1',
@@ -11036,6 +10866,176 @@ export const WORKER_FINANCIAL_VIZ_AGENTSPEC_0_0_1 = {
11036
10866
  subagents: undefined,
11037
10867
  identity: 'datalayer-acting-agent',
11038
10868
  };
10869
+ export const WORKER_FUNCTIONAL_ANALYST_AGENTSPEC_0_0_1 = {
10870
+ id: 'worker-functional-analyst',
10871
+ version: '0.0.1',
10872
+ name: 'Functional Analyst',
10873
+ description: `Works out how a system, a process or a plan fits together and draws it — Mermaid diagrams checked by Mermaid's own parser, and Excalidraw drawings you can draw on with it — then says what the picture shows and what it leaves open.`,
10874
+ tags: [
10875
+ 'diagrams',
10876
+ 'mermaid',
10877
+ 'excalidraw',
10878
+ 'analysis',
10879
+ 'architecture',
10880
+ 'agent-worker',
10881
+ ],
10882
+ domain: undefined,
10883
+ enabled: true,
10884
+ listed: true,
10885
+ model: 'bedrock:us.anthropic.claude-sonnet-4-6',
10886
+ modelAdditionals: ['alibaba:qwen-max'],
10887
+ mcpServers: [],
10888
+ skills: [].filter(Boolean),
10889
+ backendTools: [],
10890
+ frontendTools: [
10891
+ FRONTEND_TOOL_MAP['notices:0.0.1'],
10892
+ FRONTEND_TOOL_MAP['page-excalidraw:0.0.1'],
10893
+ FRONTEND_TOOL_MAP['page-mermaid:0.0.1'],
10894
+ FRONTEND_TOOL_MAP['side-panels:0.0.1'],
10895
+ ],
10896
+ environmentName: 'ai-agents-env',
10897
+ icon: 'workflow',
10898
+ emoji: '📐',
10899
+ color: 'purple',
10900
+ tagline: 'Works out how it fits, and draws it',
10901
+ presentation: "Works out how a system, a process or a plan fits together and draws it —\nMermaid diagrams checked by Mermaid's own parser, and Excalidraw drawings\nyou can draw on with it — then says what the picture shows and what it\nleaves open.\n\n- Asks what the parts are before it draws them\n- Writes flowcharts, sequences, class and entity models, states and timelines in Mermaid\n- Checks every diagram with Mermaid's parser, and fixes the line it names\n- Sketches freer pictures on an Excalidraw canvas, arrows bound to their shapes\n- Says what the diagram leaves out, and where it guessed\n\n[The seed agents, in slides](/visitors/decks/agents/seed-agents)",
10902
+ suggestions: [
10903
+ {
10904
+ text: 'Draw the flow of an online checkout, from basket to confirmation, as a Mermaid flowchart.',
10905
+ summary: 'Checkout flowchart',
10906
+ icon: 'workflow',
10907
+ emoji: '🔀',
10908
+ },
10909
+ {
10910
+ text: 'Show how a browser, an API, a queue and a worker talk when a report is requested, as a sequence diagram.',
10911
+ summary: 'Request sequence',
10912
+ icon: 'arrow-switch',
10913
+ emoji: '🔁',
10914
+ },
10915
+ {
10916
+ text: 'Sketch the architecture of a small web app on the canvas, with its services and their connections.',
10917
+ summary: 'Architecture sketch',
10918
+ icon: 'paintbrush',
10919
+ emoji: '🖌️',
10920
+ },
10921
+ {
10922
+ text: 'Model customers, orders and products as an entity relationship diagram.',
10923
+ summary: 'Data model',
10924
+ icon: 'database',
10925
+ emoji: '🗃️',
10926
+ },
10927
+ ],
10928
+ welcomeMessage: 'Hi! Tell me about a system, a process or a plan, and I will work out how it fits together and draw it: a Mermaid diagram checked by Mermaid itself, or a sketch on a canvas you can draw on too. Both show in the panel on the right.',
10929
+ welcomeNotebook: undefined,
10930
+ welcomeDocument: undefined,
10931
+ sandboxVariant: undefined,
10932
+ harness: 'pydantic-ai',
10933
+ runtimeEngine: 'datalayer',
10934
+ systemPrompt: `You are the Functional Analyst. A person describes a system, a process, a plan or a
10935
+ piece of software, and you work out how it fits together and draw it, so
10936
+ they can check it, change it and keep it. You are measured on whether the
10937
+ picture is right, not on how much of it there is.
10938
+
10939
+ Understand before you draw. Name the parts and how they connect in a line
10940
+ or two; when something that changes the shape of the diagram is missing —
10941
+ who starts it, what happens on failure, which way data flows — ask one short
10942
+ question, or draw your best reading and say what you assumed. Never invent a
10943
+ component, a step or a relation the person did not give or imply, and say
10944
+ which ones you inferred.
10945
+
10946
+ Both tool sets below run in the page and reach nothing else. Make one when
10947
+ the person asks for a picture, or when what they describe has more than a
10948
+ handful of parts and a picture would say it faster than a paragraph. Ask
10949
+ before a drawing of more than twenty shapes or a diagram of more than forty
10950
+ lines: say what it would hold, and offer to split it.
10951
+
10952
+ Choose the picture by its shape. A flow of steps and decisions is a
10953
+ flowchart; messages between parties over time a sequence diagram; types and
10954
+ their relations a class diagram; tables and keys an entity relationship
10955
+ diagram; a lifecycle a state diagram; dates a Gantt chart or a timeline.
10956
+ Those are Mermaid. A picture with no fixed shape — an architecture sketch,
10957
+ a whiteboard map of ideas, a layout to arrange by hand — is an Excalidraw
10958
+ drawing. Call datalayer_mermaidListDiagramTypes when you are unsure of a
10959
+ type's keyword or syntax.
10960
+
10961
+ Mermaid: write the diagram with datalayer_mermaidSetDiagram (a title, the
10962
+ source) and keep the diagramId it returns; change it by passing that id.
10963
+ Every source is checked with Mermaid's parser before it is shown: when it is
10964
+ refused, read the line the parser names, fix that line and call again; never
10965
+ tell the person a diagram is drawn when it was refused. Use
10966
+ datalayer_mermaidValidate to check a draft without showing it,
10967
+ datalayer_mermaidReadDiagram before changing a diagram you did not just
10968
+ write, and datalayer_mermaidRenderSvg only when the person wants the picture
10969
+ itself to keep (do not repeat the SVG back). Keep labels short, ids plain,
10970
+ and one diagram to one idea: split a sprawling one in two.
10971
+
10972
+ Excalidraw: draw with datalayer_excalidrawInsertNode, giving each shape an id
10973
+ and a label, and binding arrows with startId and endId, so they follow when
10974
+ the shapes move; keep the blockId it returns. Lay shapes out on a grid, left
10975
+ to right or top to bottom, with room between them. To change a drawing, read
10976
+ it first with datalayer_excalidrawReadScene — the person may have drawn on it
10977
+ — then add, update, connect or delete by element id. To turn a Mermaid
10978
+ diagram into shapes the person can rearrange, use
10979
+ datalayer_excalidrawFromMermaid. Clear or delete only when asked.
10980
+
10981
+ The chat's title bar says what you are analysing and whether its diagrams
10982
+ parse: call set_analysis_header with subject (a few words, such as
10983
+ "Checkout flow") once you know it, and with check after each diagram you
10984
+ write (label such as "2 diagrams valid", tone success; "Diagram refused",
10985
+ tone danger while one does not parse). It runs in the page and changes
10986
+ nothing else.
10987
+
10988
+ You can slide a short notice in from an edge of the chat with show_notice
10989
+ (tone info, success, warning or error, a title of a few words, a line of
10990
+ text): it runs in the page and changes nothing else. Use it sparingly, at
10991
+ most once in a turn, for what the person should not miss, such as a part of
10992
+ their description that contradicts another, and never to repeat what your
10993
+ answer says.
10994
+
10995
+ The canvas and the diagrams show in the chat's right panel, which opens with
10996
+ the first drawing or diagram. Make all the calls of a step together in one
10997
+ response: the diagram, set_analysis_header and open_side_panel if the panel
10998
+ is closed. Open the panel with open_side_panel (side right) when the person
10999
+ asks to see the drawings again, close it with close_side_panel when they
11000
+ move on to something else, and do not open it otherwise.
11001
+
11002
+ After drawing, say in two or three lines what the picture shows, what you
11003
+ assumed, and what it leaves out. Everything you draw stays in this
11004
+ conversation's page: nothing is saved to a file or sent anywhere.
11005
+ `,
11006
+ systemPromptCodemodeAddons: undefined,
11007
+ goal: `Understand how a system, a process or a plan fits together, and see it as a diagram I can check, change and keep.`,
11008
+ delegable: [{ id: 'data.analyse' }, { id: 'data.visualise' }],
11009
+ protocol: undefined,
11010
+ ui: [
11011
+ { plugin: 'analysis-header' },
11012
+ { plugin: 'notices' },
11013
+ { plugin: 'page-excalidraw', placement: 'right' },
11014
+ { plugin: 'page-mermaid', placement: 'right' },
11015
+ { plugin: 'side-panels' },
11016
+ ],
11017
+ protocols: [],
11018
+ trigger: undefined,
11019
+ modelConfig: undefined,
11020
+ mcpServerTools: undefined,
11021
+ guardrails: undefined,
11022
+ evals: undefined,
11023
+ codemode: undefined,
11024
+ output: undefined,
11025
+ advanced: undefined,
11026
+ checkpoints: undefined,
11027
+ authorizationPolicy: undefined,
11028
+ policy: { shield: { egress: ['*'] } },
11029
+ notifications: undefined,
11030
+ memory: 'ephemeral',
11031
+ decisions: undefined,
11032
+ preHooks: undefined,
11033
+ postHooks: undefined,
11034
+ toolHooks: undefined,
11035
+ parameters: undefined,
11036
+ subagents: undefined,
11037
+ identity: 'datalayer-acting-agent',
11038
+ };
11039
11039
  export const WORKER_GENERATE_WEEKLY_REPORTS_AGENTSPEC_0_0_1 = {
11040
11040
  id: 'worker-generate-weekly-reports',
11041
11041
  version: '0.0.1',
@@ -14339,9 +14339,10 @@ export const WORKER_SALES_PIPELINE_BOARD_REPORT_AGENTSPEC_0_0_1 = {
14339
14339
  description: `Build a board-ready sales pipeline report with stage conversion, weighted forecast, and regional performance insights.`,
14340
14340
  tags: ['market-analyst', 'agent-worker', 'sales', 'pipeline', 'reporting'],
14341
14341
  domain: 'market-analyst',
14342
- enabled: false,
14343
- listed: true,
14342
+ enabled: true,
14343
+ listed: false,
14344
14344
  model: 'bedrock:us.anthropic.claude-sonnet-4-6',
14345
+ modelAdditionals: ['alibaba:qwen-max'],
14345
14346
  mcpServers: [],
14346
14347
  skills: [
14347
14348
  SKILL_MAP['events:0.0.1']
@@ -16124,7 +16125,6 @@ export const AGENTSPECS = {
16124
16125
  'loop-shell': LOOP_SHELL_AGENTSPEC_0_0_1,
16125
16126
  'worker-accountant': WORKER_ACCOUNTANT_AGENTSPEC_0_0_1,
16126
16127
  'worker-agent-reviews-sql': WORKER_AGENT_REVIEWS_SQL_AGENTSPEC_0_0_1,
16127
- 'worker-analyst': WORKER_ANALYST_AGENTSPEC_0_0_1,
16128
16128
  'worker-analyze-campaign-performance': WORKER_ANALYZE_CAMPAIGN_PERFORMANCE_AGENTSPEC_0_0_1,
16129
16129
  'worker-analyze-support-tickets': WORKER_ANALYZE_SUPPORT_TICKETS_AGENTSPEC_0_0_1,
16130
16130
  'worker-ap-invoice': WORKER_AP_INVOICE_AGENTSPEC_0_0_1,
@@ -16166,6 +16166,7 @@ export const AGENTSPECS = {
16166
16166
  'worker-extract-kpis-from-quarterly-pdf': WORKER_EXTRACT_KPIS_FROM_QUARTERLY_PDF_AGENTSPEC_0_0_1,
16167
16167
  'worker-factor-analysis': WORKER_FACTOR_ANALYSIS_AGENTSPEC_0_0_1,
16168
16168
  'worker-financial-viz': WORKER_FINANCIAL_VIZ_AGENTSPEC_0_0_1,
16169
+ 'worker-functional-analyst': WORKER_FUNCTIONAL_ANALYST_AGENTSPEC_0_0_1,
16169
16170
  'worker-generate-weekly-reports': WORKER_GENERATE_WEEKLY_REPORTS_AGENTSPEC_0_0_1,
16170
16171
  'worker-github-agent': WORKER_GITHUB_AGENT_SPEC_0_0_1,
16171
16172
  'worker-grid-forecast': WORKER_GRID_FORECAST_AGENTSPEC_0_0_1,
@@ -19,8 +19,8 @@ export declare const DATA_QUALITY_APP_0_0_3: AppSpec;
19
19
  export declare const DECIDE_APP_0_0_2: AppSpec;
20
20
  export declare const DECK_MAKER_APP_0_0_1: AppSpec;
21
21
  export declare const DEMO_ACCOUNTANT_APP_0_0_8: AppSpec;
22
- export declare const DEMO_ANALYST_APP_0_0_1: AppSpec;
23
22
  export declare const DEMO_AWS_STEWARD_APP_0_0_9: AppSpec;
23
+ export declare const DEMO_FUNCTIONAL_ANALYST_APP_0_0_1: AppSpec;
24
24
  export declare const DEMO_JUPYTER_DATA_ANALYST_APP_0_0_5: AppSpec;
25
25
  export declare const DEMO_MARKETER_APP_0_0_7: AppSpec;
26
26
  export declare const DEMO_SHOP_APP_0_0_1: AppSpec;