@datalayer/agent-runtimes 1.0.1 → 1.0.2

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.
Files changed (31) hide show
  1. package/lib/components/McpServerManager.d.ts +1 -1
  2. package/lib/components/McpServerManager.js +1 -1
  3. package/lib/components/chat/components/Chat.d.ts +1 -1
  4. package/lib/components/chat/components/base/ChatBase.d.ts +1 -1
  5. package/lib/components/chat/components/base/ChatBase.js +4 -2
  6. package/lib/components/chat/store/conversationStore.d.ts +1 -1
  7. package/lib/components/chat/store/conversationStore.js +2 -2
  8. package/lib/hooks/index.d.ts +8 -0
  9. package/lib/hooks/index.js +8 -0
  10. package/lib/hooks/useAgentRuntimes.d.ts +350 -0
  11. package/lib/hooks/useAgentRuntimes.js +78 -0
  12. package/lib/hooks/useAgentStore.d.ts +30 -0
  13. package/lib/hooks/useAgentStore.js +22 -0
  14. package/lib/specs/agents/codeai/agents.d.ts +1 -1
  15. package/lib/specs/agents/codeai/agents.js +28 -0
  16. package/lib/specs/agents/codemode-paper/agents.d.ts +1 -1
  17. package/lib/specs/agents/codemode-paper/agents.js +71 -1
  18. package/lib/specs/agents/datalayer-ai/agents.d.ts +1 -1
  19. package/lib/specs/agents/datalayer-ai/agents.js +70 -0
  20. package/lib/specs/agents/index.js +2 -0
  21. package/lib/specs/agents/mocks/agents.d.ts +43 -0
  22. package/lib/specs/agents/mocks/agents.js +2293 -0
  23. package/lib/specs/agents/mocks/index.d.ts +1 -0
  24. package/lib/specs/agents/mocks/index.js +5 -0
  25. package/lib/specs/mcpServers.d.ts +1 -0
  26. package/lib/specs/mcpServers.js +16 -0
  27. package/lib/specs/models.d.ts +2 -2
  28. package/lib/specs/models.js +5 -5
  29. package/lib/types/Types.d.ts +29 -1
  30. package/package.json +1 -1
  31. package/scripts/codegen/generate_agents.py +95 -2
@@ -85,6 +85,20 @@ export const CRAWLER_AGENT_SPEC = {
85
85
  ## Token Efficiency Always chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
86
86
  For huggingface tools, use search_doc tool to understand other tools return's schema.
87
87
  `,
88
+ goal: undefined,
89
+ protocol: undefined,
90
+ uiExtension: undefined,
91
+ trigger: undefined,
92
+ modelConfig: undefined,
93
+ mcpServerTools: undefined,
94
+ guardrails: undefined,
95
+ evals: undefined,
96
+ codemode: undefined,
97
+ output: undefined,
98
+ advanced: undefined,
99
+ authorizationPolicy: undefined,
100
+ notifications: undefined,
101
+ team: undefined,
88
102
  };
89
103
  export const DATA_ACQUISITION_AGENT_SPEC = {
90
104
  id: 'codemode-paper/data-acquisition',
@@ -131,6 +145,20 @@ export const DATA_ACQUISITION_AGENT_SPEC = {
131
145
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
132
146
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
133
147
  `,
148
+ goal: undefined,
149
+ protocol: undefined,
150
+ uiExtension: undefined,
151
+ trigger: undefined,
152
+ modelConfig: undefined,
153
+ mcpServerTools: undefined,
154
+ guardrails: undefined,
155
+ evals: undefined,
156
+ codemode: undefined,
157
+ output: undefined,
158
+ advanced: undefined,
159
+ authorizationPolicy: undefined,
160
+ notifications: undefined,
161
+ team: undefined,
134
162
  };
135
163
  export const FINANCIAL_VIZ_AGENT_SPEC = {
136
164
  id: 'codemode-paper/financial-viz',
@@ -173,6 +201,20 @@ export const FINANCIAL_VIZ_AGENT_SPEC = {
173
201
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
174
202
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
175
203
  `,
204
+ goal: undefined,
205
+ protocol: undefined,
206
+ uiExtension: undefined,
207
+ trigger: undefined,
208
+ modelConfig: undefined,
209
+ mcpServerTools: undefined,
210
+ guardrails: undefined,
211
+ evals: undefined,
212
+ codemode: undefined,
213
+ output: undefined,
214
+ advanced: undefined,
215
+ authorizationPolicy: undefined,
216
+ notifications: undefined,
217
+ team: undefined,
176
218
  };
177
219
  export const GITHUB_AGENT_SPEC = {
178
220
  id: 'codemode-paper/github-agent',
@@ -215,6 +257,20 @@ export const GITHUB_AGENT_SPEC = {
215
257
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
216
258
  ## Token Efficiency Always chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
217
259
  `,
260
+ goal: undefined,
261
+ protocol: undefined,
262
+ uiExtension: undefined,
263
+ trigger: undefined,
264
+ modelConfig: undefined,
265
+ mcpServerTools: undefined,
266
+ guardrails: undefined,
267
+ evals: undefined,
268
+ codemode: undefined,
269
+ output: undefined,
270
+ advanced: undefined,
271
+ authorizationPolicy: undefined,
272
+ notifications: undefined,
273
+ team: undefined,
218
274
  };
219
275
  export const INFORMATION_ROUTING_AGENT_SPEC = {
220
276
  id: 'codemode-paper/information-routing',
@@ -222,7 +278,7 @@ export const INFORMATION_ROUTING_AGENT_SPEC = {
222
278
  description: `Routes information between Google Drive and other services, managing document workflows and information sharing.`,
223
279
  tags: ['workflow', 'communication', 'gdrive'],
224
280
  enabled: false,
225
- model: 'bedrock:us.anthropic.claude-sonnet-4-5-20250929-v1:0',
281
+ model: 'bedrock:us.anthropic.claude-opus-4-6-v1',
226
282
  mcpServers: [MCP_SERVER_MAP['google-workspace'], MCP_SERVER_MAP['github']],
227
283
  skills: [],
228
284
  environmentName: 'ai-agents-env',
@@ -257,6 +313,20 @@ export const INFORMATION_ROUTING_AGENT_SPEC = {
257
313
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check input and output schemas 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
258
314
  ## Token Efficiency Always chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important!!!!
259
315
  `,
316
+ goal: undefined,
317
+ protocol: undefined,
318
+ uiExtension: undefined,
319
+ trigger: undefined,
320
+ modelConfig: undefined,
321
+ mcpServerTools: undefined,
322
+ guardrails: undefined,
323
+ evals: undefined,
324
+ codemode: undefined,
325
+ output: undefined,
326
+ advanced: undefined,
327
+ authorizationPolicy: undefined,
328
+ notifications: undefined,
329
+ team: undefined,
260
330
  };
261
331
  // ============================================================================
262
332
  // Agent Specs Registry
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Agent Library.
3
3
  *
4
- * Predefined agent specifications that can be instantiated as AgentSpaces.
4
+ * Predefined agent specifications that can be instantiated as Agent Runtimes.
5
5
  * THIS FILE IS AUTO-GENERATED. DO NOT EDIT MANUALLY.
6
6
  * Generated from YAML specifications in specs/agents/
7
7
  */
@@ -77,6 +77,20 @@ export const CRAWLER_AGENT_SPEC = {
77
77
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
78
78
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
79
79
  `,
80
+ goal: undefined,
81
+ protocol: undefined,
82
+ uiExtension: undefined,
83
+ trigger: undefined,
84
+ modelConfig: undefined,
85
+ mcpServerTools: undefined,
86
+ guardrails: undefined,
87
+ evals: undefined,
88
+ codemode: undefined,
89
+ output: undefined,
90
+ advanced: undefined,
91
+ authorizationPolicy: undefined,
92
+ notifications: undefined,
93
+ team: undefined,
80
94
  };
81
95
  export const DATA_ACQUISITION_AGENT_SPEC = {
82
96
  id: 'datalayer-ai/data-acquisition',
@@ -123,6 +137,20 @@ export const DATA_ACQUISITION_AGENT_SPEC = {
123
137
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
124
138
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
125
139
  `,
140
+ goal: undefined,
141
+ protocol: undefined,
142
+ uiExtension: undefined,
143
+ trigger: undefined,
144
+ modelConfig: undefined,
145
+ mcpServerTools: undefined,
146
+ guardrails: undefined,
147
+ evals: undefined,
148
+ codemode: undefined,
149
+ output: undefined,
150
+ advanced: undefined,
151
+ authorizationPolicy: undefined,
152
+ notifications: undefined,
153
+ team: undefined,
126
154
  };
127
155
  export const FINANCIAL_AGENT_SPEC = {
128
156
  id: 'datalayer-ai/financial',
@@ -165,6 +193,20 @@ export const FINANCIAL_AGENT_SPEC = {
165
193
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
166
194
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
167
195
  `,
196
+ goal: undefined,
197
+ protocol: undefined,
198
+ uiExtension: undefined,
199
+ trigger: undefined,
200
+ modelConfig: undefined,
201
+ mcpServerTools: undefined,
202
+ guardrails: undefined,
203
+ evals: undefined,
204
+ codemode: undefined,
205
+ output: undefined,
206
+ advanced: undefined,
207
+ authorizationPolicy: undefined,
208
+ notifications: undefined,
209
+ team: undefined,
168
210
  };
169
211
  export const GITHUB_AGENT_SPEC = {
170
212
  id: 'datalayer-ai/github-agent',
@@ -207,6 +249,20 @@ export const GITHUB_AGENT_SPEC = {
207
249
  ## Recommended Workflow 1. **Discover**: Use list_servers and search_tools to find relevant tools 2. **Understand**: Use get_tool_details to check parameters 3. **Execute**: Use execute_code to perform multi-step tasks, calling tools as needed
208
250
  ## Token Efficiency When possible, chain multiple tool calls in a single execute_code block. This reduces output tokens by processing intermediate results in code rather than returning them. If you want to examine results, print subsets, preview (maximum 20 first characters) and/or counts instead of full data, this is really important.
209
251
  `,
252
+ goal: undefined,
253
+ protocol: undefined,
254
+ uiExtension: undefined,
255
+ trigger: undefined,
256
+ modelConfig: undefined,
257
+ mcpServerTools: undefined,
258
+ guardrails: undefined,
259
+ evals: undefined,
260
+ codemode: undefined,
261
+ output: undefined,
262
+ advanced: undefined,
263
+ authorizationPolicy: undefined,
264
+ notifications: undefined,
265
+ team: undefined,
210
266
  };
211
267
  export const SIMPLE_AGENT_SPEC = {
212
268
  id: 'datalayer-ai/simple',
@@ -231,6 +287,20 @@ export const SIMPLE_AGENT_SPEC = {
231
287
  systemPrompt: `You are a helpful, friendly AI assistant. You do not have access to any external tools, MCP servers, or skills. Answer questions using your training knowledge, be concise, and let the user know if a question is outside your knowledge.
232
288
  `,
233
289
  systemPromptCodemodeAddons: undefined,
290
+ goal: undefined,
291
+ protocol: undefined,
292
+ uiExtension: undefined,
293
+ trigger: undefined,
294
+ modelConfig: undefined,
295
+ mcpServerTools: undefined,
296
+ guardrails: undefined,
297
+ evals: undefined,
298
+ codemode: undefined,
299
+ output: undefined,
300
+ advanced: undefined,
301
+ authorizationPolicy: undefined,
302
+ notifications: undefined,
303
+ team: undefined,
234
304
  };
235
305
  // ============================================================================
236
306
  // Agent Specs Registry
@@ -5,11 +5,13 @@
5
5
  import { AGENT_SPECS as CODEAI_AGENTS } from './codeai';
6
6
  import { AGENT_SPECS as CODEMODE_PAPER_AGENTS } from './codemode-paper';
7
7
  import { AGENT_SPECS as DATALAYER_AI_AGENTS } from './datalayer-ai';
8
+ import { AGENT_SPECS as MOCKS_AGENTS } from './mocks';
8
9
  // Merge all agent specs from subfolders
9
10
  export const AGENT_SPECS = {
10
11
  ...CODEAI_AGENTS,
11
12
  ...CODEMODE_PAPER_AGENTS,
12
13
  ...DATALAYER_AI_AGENTS,
14
+ ...MOCKS_AGENTS,
13
15
  };
14
16
  /**
15
17
  * Get an agent specification by ID.
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Agent Library.
3
+ *
4
+ * Predefined agent specifications that can be instantiated as Agent Runtimes.
5
+ * THIS FILE IS AUTO-GENERATED. DO NOT EDIT MANUALLY.
6
+ * Generated from YAML specifications in specs/agents/
7
+ */
8
+ import type { AgentSpec } from '../../../types/Types';
9
+ export declare const ANALYZE_CAMPAIGN_PERFORMANCE_AGENT_SPEC: AgentSpec;
10
+ export declare const ANALYZE_SUPPORT_TICKETS_AGENT_SPEC: AgentSpec;
11
+ export declare const AUDIT_INVENTORY_LEVELS_AGENT_SPEC: AgentSpec;
12
+ export declare const AUTOMATE_REGULATORY_REPORTING_AGENT_SPEC: AgentSpec;
13
+ export declare const CLASSIFY_ROUTE_EMAILS_AGENT_SPEC: AgentSpec;
14
+ export declare const COMPREHENSIVE_SALES_ANALYTICS_AGENT_SPEC: AgentSpec;
15
+ export declare const END_OF_MONTH_SALES_PERFORMANCE_AGENT_SPEC: AgentSpec;
16
+ export declare const EXTRACT_DATA_FROM_FILES_AGENT_SPEC: AgentSpec;
17
+ export declare const GENERATE_WEEKLY_REPORTS_AGENT_SPEC: AgentSpec;
18
+ export declare const MONITOR_SALES_KPIS_AGENT_SPEC: AgentSpec;
19
+ export declare const OPTIMIZE_DYNAMIC_PRICING_AGENT_SPEC: AgentSpec;
20
+ export declare const OPTIMIZE_GRID_OPERATIONS_AGENT_SPEC: AgentSpec;
21
+ export declare const PROCESS_CITIZEN_REQUESTS_AGENT_SPEC: AgentSpec;
22
+ export declare const PROCESS_CLINICAL_TRIAL_DATA_AGENT_SPEC: AgentSpec;
23
+ export declare const PROCESS_FINANCIAL_TRANSACTIONS_AGENT_SPEC: AgentSpec;
24
+ export declare const SUMMARIZE_DOCUMENTS_AGENT_SPEC: AgentSpec;
25
+ export declare const SYNC_CRM_CONTACTS_AGENT_SPEC: AgentSpec;
26
+ export declare const AGENT_SPECS: Record<string, AgentSpec>;
27
+ /**
28
+ * Get an agent specification by ID.
29
+ */
30
+ export declare function getAgentSpecs(agentId: string): AgentSpec | undefined;
31
+ /**
32
+ * List all available agent specifications.
33
+ *
34
+ * @param prefix - If provided, only return specs whose ID starts with this prefix.
35
+ */
36
+ export declare function listAgentSpecs(prefix?: string): AgentSpec[];
37
+ /**
38
+ * Collect all required environment variables for an agent spec.
39
+ *
40
+ * Iterates over the spec's MCP servers and skills and returns the
41
+ * deduplicated union of their `requiredEnvVars` arrays.
42
+ */
43
+ export declare function getAgentSpecRequiredEnvVars(spec: AgentSpec): string[];