@datalayer/agent-runtimes 1.0.0 → 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.
- package/lib/Agent.js +1 -2
- package/lib/AgentLexical.js +1 -2
- package/lib/AgentNotebook.js +1 -2
- package/lib/components/McpServerManager.d.ts +1 -1
- package/lib/components/McpServerManager.js +1 -1
- package/lib/components/chat/components/Chat.d.ts +1 -1
- package/lib/components/chat/components/ChatFloating.d.ts +4 -2
- package/lib/components/chat/components/ChatFloating.js +1 -1
- package/lib/components/chat/components/base/ChatBase.d.ts +1 -1
- package/lib/components/chat/components/base/ChatBase.js +4 -2
- package/lib/components/chat/store/conversationStore.d.ts +1 -1
- package/lib/components/chat/store/conversationStore.js +2 -2
- package/lib/examples/A2UiRestaurantExample.js +2 -2
- package/lib/examples/AgUiAgenticExample.js +3 -3
- package/lib/examples/AgUiBackendToolRenderingExample.js +4 -3
- package/lib/examples/AgUiHaikuGenUIExample.js +4 -3
- package/lib/examples/AgUiHumanInTheLoopExample.js +4 -3
- package/lib/examples/AgUiSharedStateExample.js +4 -3
- package/lib/examples/AgUiToolsBasedGenUIExample.js +4 -3
- package/lib/examples/AgentRuntimeChatExample.js +3 -3
- package/lib/examples/AgentRuntimeCustomExample.js +2 -2
- package/lib/examples/AgentRuntimeFormExample.js +2 -2
- package/lib/examples/AgentRuntimeLexical2Example.js +3 -2
- package/lib/examples/AgentRuntimeLexicalExample.js +4 -3
- package/lib/examples/AgentRuntimeLexicalSidebarExample.js +3 -2
- package/lib/examples/AgentRuntimeNotebookExample.js +4 -3
- package/lib/examples/AgentRuntimeNotebookSidebarExample.js +3 -2
- package/lib/examples/AgentRuntimeStandaloneExample.js +3 -3
- package/lib/examples/CopilotKitLexicalExample.js +3 -2
- package/lib/examples/CopilotKitNotebookExample.js +3 -2
- package/lib/examples/DatalayerNotebookExample.js +3 -2
- package/lib/examples/JupyterCellExample.js +3 -2
- package/lib/examples/JupyterNotebookExample.js +3 -2
- package/lib/examples/main.js +68 -18
- package/lib/examples/stores/themeStore.d.ts +33 -0
- package/lib/examples/stores/themeStore.js +38 -0
- package/lib/examples/stores/themedProvider.d.ts +45 -0
- package/lib/examples/stores/themedProvider.js +54 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/index.js +8 -0
- package/lib/hooks/useAgentRuntimes.d.ts +350 -0
- package/lib/hooks/useAgentRuntimes.js +78 -0
- package/lib/hooks/useAgentStore.d.ts +30 -0
- package/lib/hooks/useAgentStore.js +22 -0
- package/lib/specs/agents/codeai/agents.d.ts +1 -1
- package/lib/specs/agents/codeai/agents.js +28 -0
- package/lib/specs/agents/codemode-paper/agents.d.ts +1 -1
- package/lib/specs/agents/codemode-paper/agents.js +71 -1
- package/lib/specs/agents/datalayer-ai/agents.d.ts +1 -1
- package/lib/specs/agents/datalayer-ai/agents.js +70 -0
- package/lib/specs/agents/index.js +2 -0
- package/lib/specs/agents/mocks/agents.d.ts +43 -0
- package/lib/specs/agents/mocks/agents.js +2293 -0
- package/lib/specs/agents/mocks/index.d.ts +1 -0
- package/lib/specs/agents/mocks/index.js +5 -0
- package/lib/specs/mcpServers.d.ts +1 -0
- package/lib/specs/mcpServers.js +16 -0
- package/lib/specs/models.d.ts +2 -2
- package/lib/specs/models.js +5 -5
- package/lib/types/Types.d.ts +29 -1
- package/package.json +4 -3
- package/scripts/codegen/generate_agents.py +95 -2
|
@@ -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[];
|