@datalayer/agent-runtimes 1.0.5 → 1.0.6
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 +157 -10
- package/lib/AgentNode.d.ts +3 -0
- package/lib/AgentNode.js +676 -0
- package/lib/agent-node/themeStore.d.ts +3 -0
- package/lib/agent-node/themeStore.js +156 -0
- package/lib/agent-node-main.d.ts +1 -0
- package/lib/agent-node-main.js +14 -0
- package/lib/chat/Chat.js +16 -10
- package/lib/chat/ChatFloating.js +1 -1
- package/lib/chat/ChatSidebar.js +81 -49
- package/lib/chat/base/ChatBase.js +388 -74
- package/lib/chat/display/FloatingBrandButton.js +8 -1
- package/lib/chat/header/ChatHeader.d.ts +3 -1
- package/lib/chat/header/ChatHeader.js +15 -12
- package/lib/chat/header/ChatHeaderBase.d.ts +29 -9
- package/lib/chat/header/ChatHeaderBase.js +26 -3
- package/lib/chat/indicators/SandboxStatusIndicator.js +82 -47
- package/lib/chat/messages/ChatMessageList.js +46 -1
- package/lib/chat/messages/ChatMessages.js +6 -2
- package/lib/chat/prompt/InputFooter.d.ts +3 -1
- package/lib/chat/prompt/InputFooter.js +8 -5
- package/lib/chat/prompt/InputPrompt.d.ts +3 -1
- package/lib/chat/prompt/InputPrompt.js +2 -2
- package/lib/chat/prompt/InputPromptFooter.d.ts +3 -1
- package/lib/chat/prompt/InputPromptFooter.js +3 -3
- package/lib/client/AgentsMixin.js +14 -0
- package/lib/config/AgentConfiguration.d.ts +22 -0
- package/lib/config/AgentConfiguration.js +319 -64
- package/lib/examples/AgUiSharedStateExample.js +2 -1
- package/lib/examples/AgentCheckpointsExample.js +3 -3
- package/lib/examples/AgentCodemodeExample.d.ts +3 -3
- package/lib/examples/AgentCodemodeExample.js +24 -12
- package/lib/examples/AgentEvalsExample.js +330 -40
- package/lib/examples/AgentGuardrailsExample.js +16 -5
- package/lib/examples/AgentHooksExample.js +27 -9
- package/lib/examples/AgentInferenceProviderExample.d.ts +3 -0
- package/lib/examples/AgentInferenceProviderExample.js +329 -0
- package/lib/examples/AgentMCPExample.js +6 -5
- package/lib/examples/AgentMemoryExample.d.ts +1 -2
- package/lib/examples/AgentMemoryExample.js +71 -22
- package/lib/examples/AgentMonitoringExample.js +5 -5
- package/lib/examples/AgentNotificationsExample.d.ts +1 -2
- package/lib/examples/AgentNotificationsExample.js +71 -22
- package/lib/examples/AgentOtelExample.js +31 -40
- package/lib/examples/AgentOutputsExample.d.ts +1 -1
- package/lib/examples/AgentOutputsExample.js +67 -16
- package/lib/examples/AgentParametersExample.js +10 -8
- package/lib/examples/AgentSandboxExample.d.ts +1 -1
- package/lib/examples/AgentSandboxExample.js +7 -6
- package/lib/examples/AgentSkillsExample.js +6 -6
- package/lib/examples/AgentSubagentsExample.d.ts +1 -1
- package/lib/examples/AgentSubagentsExample.js +6 -6
- package/lib/examples/AgentToolApprovalsExample.js +27 -11
- package/lib/examples/AgentTriggersExample.js +5 -5
- package/lib/examples/{AgentSpecsExample.d.ts → AgentspecsExample.d.ts} +2 -2
- package/lib/examples/AgentspecsExample.js +1096 -0
- package/lib/examples/ChatCustomExample.js +6 -5
- package/lib/examples/ChatExample.js +6 -5
- package/lib/examples/Lexical2Example.js +1 -1
- package/lib/examples/LexicalAgentExample.js +1 -1
- package/lib/examples/NotebookAgentExample.js +3 -3
- package/lib/examples/components/ExampleWrapper.d.ts +6 -7
- package/lib/examples/components/ExampleWrapper.js +27 -10
- package/lib/examples/example-selector.js +2 -1
- package/lib/examples/index.d.ts +2 -1
- package/lib/examples/index.js +2 -1
- package/lib/examples/lexical/initial-content.json +6 -6
- package/lib/examples/main.js +56 -16
- package/lib/examples/utils/agentId.d.ts +1 -1
- package/lib/examples/utils/agentId.js +1 -1
- package/lib/examples/utils/useExampleAgentRuntimesUrl.d.ts +5 -0
- package/lib/examples/utils/useExampleAgentRuntimesUrl.js +19 -0
- package/lib/hooks/useAIAgentsWebSocket.js +35 -0
- package/lib/hooks/useAgentRuntimes.d.ts +32 -3
- package/lib/hooks/useAgentRuntimes.js +114 -19
- package/lib/index.d.ts +1 -1
- package/lib/specs/agents/agents.d.ts +20 -13
- package/lib/specs/agents/agents.js +1267 -581
- package/lib/specs/benchmarks.d.ts +20 -0
- package/lib/specs/benchmarks.js +205 -0
- package/lib/specs/envvars.d.ts +0 -1
- package/lib/specs/envvars.js +0 -11
- package/lib/specs/evals.d.ts +10 -9
- package/lib/specs/evals.js +128 -88
- package/lib/specs/index.d.ts +0 -1
- package/lib/specs/index.js +0 -1
- package/lib/specs/models.d.ts +0 -2
- package/lib/specs/models.js +0 -15
- package/lib/specs/skills.d.ts +0 -1
- package/lib/specs/skills.js +0 -18
- package/lib/stores/agentRuntimeStore.d.ts +5 -1
- package/lib/stores/agentRuntimeStore.js +22 -8
- package/lib/stores/conversationStore.js +2 -2
- package/lib/types/agents-lifecycle.d.ts +18 -0
- package/lib/types/agents.d.ts +6 -0
- package/lib/types/agentspecs.d.ts +4 -0
- package/lib/types/benchmarks.d.ts +43 -0
- package/lib/types/benchmarks.js +5 -0
- package/lib/types/chat.d.ts +16 -0
- package/lib/types/evals.d.ts +26 -17
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/package.json +9 -5
- package/scripts/codegen/__pycache__/generate_agents.cpython-313.pyc +0 -0
- package/scripts/codegen/__pycache__/generate_benchmarks.cpython-313.pyc +0 -0
- package/scripts/codegen/__pycache__/generate_evals.cpython-313.pyc +0 -0
- package/scripts/codegen/generate_agents.py +89 -43
- package/scripts/codegen/generate_benchmarks.py +441 -0
- package/scripts/codegen/generate_evals.py +94 -16
- package/scripts/codegen/generate_events.py +0 -1
- package/lib/examples/AgentSpecsExample.js +0 -694
|
@@ -329,6 +329,11 @@ export function AgentsMixin(Base) {
|
|
|
329
329
|
async createAgentRuntime(data) {
|
|
330
330
|
const token = this.getToken();
|
|
331
331
|
const runtimesRunUrl = this.getRuntimesRunUrl();
|
|
332
|
+
const normalizedVolumeUids = Array.isArray(data.volumeUids)
|
|
333
|
+
? data.volumeUids.map(uid => String(uid || '').trim()).filter(Boolean)
|
|
334
|
+
: data.volumeUid
|
|
335
|
+
? [String(data.volumeUid).trim()]
|
|
336
|
+
: [];
|
|
332
337
|
return requestDatalayerAPI({
|
|
333
338
|
url: `${runtimesRunUrl}/api/runtimes/v1/runtimes`,
|
|
334
339
|
method: 'POST',
|
|
@@ -342,6 +347,15 @@ export function AgentsMixin(Base) {
|
|
|
342
347
|
enable_codemode: data.enableCodemode ?? false,
|
|
343
348
|
agent_spec_id: data.agentSpecId || undefined,
|
|
344
349
|
agent_spec: data.agentSpec || undefined,
|
|
350
|
+
user_account_handle: data.userAccountHandle || undefined,
|
|
351
|
+
billable_account_uid: data.billableAccountUid || undefined,
|
|
352
|
+
billable_account_type: data.billableAccountType || undefined,
|
|
353
|
+
billable_account_handle: data.billableAccountHandle || undefined,
|
|
354
|
+
billable_source_organization_uid: data.billableSourceOrganizationUid || undefined,
|
|
355
|
+
billable_source_organization_handle: data.billableSourceOrganizationHandle || undefined,
|
|
356
|
+
mount_home_folder: data.mountHomeFolder ?? false,
|
|
357
|
+
volume_uids: normalizedVolumeUids.length > 0 ? normalizedVolumeUids : undefined,
|
|
358
|
+
volume_uid: normalizedVolumeUids[0] || data.volumeUid || undefined,
|
|
345
359
|
},
|
|
346
360
|
});
|
|
347
361
|
}
|
|
@@ -53,10 +53,20 @@ export declare const isSpecSelection: (id: string) => boolean;
|
|
|
53
53
|
* Helper: extract the spec id from a spec selection value.
|
|
54
54
|
*/
|
|
55
55
|
export declare const getSpecId: (id: string) => string;
|
|
56
|
+
/**
|
|
57
|
+
* Helper: is the selected agent id a cloud library spec?
|
|
58
|
+
*/
|
|
59
|
+
export declare const isCloudSpecSelection: (id: string) => boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Helper: extract the cloud spec id from a cloud selection value.
|
|
62
|
+
*/
|
|
63
|
+
export declare const getCloudSpecId: (id: string) => string;
|
|
56
64
|
export interface SkillOption {
|
|
57
65
|
id: string;
|
|
58
66
|
name: string;
|
|
59
67
|
description?: string;
|
|
68
|
+
requiredEnvVars?: string[];
|
|
69
|
+
isAvailable?: boolean;
|
|
60
70
|
}
|
|
61
71
|
declare const AGENT_LIBRARIES: {
|
|
62
72
|
value: AgentLibrary;
|
|
@@ -110,6 +120,18 @@ export interface AgentConfigurationProps {
|
|
|
110
120
|
selectedSkills?: string[];
|
|
111
121
|
/** Selected MCP servers */
|
|
112
122
|
selectedMcpServers?: McpServerSelection[];
|
|
123
|
+
/** Cloud-discovered specs fetched from a remote runtime catalog. */
|
|
124
|
+
cloudLibrarySpecs?: LibraryAgentSpec[];
|
|
125
|
+
/** Loading state for cloud library specs. */
|
|
126
|
+
cloudLibraryLoading?: boolean;
|
|
127
|
+
/** Optional cloud library fetch error message. */
|
|
128
|
+
cloudLibraryError?: string | null;
|
|
129
|
+
/** Current runtime target mode label. */
|
|
130
|
+
launchTarget?: 'local' | 'cloud';
|
|
131
|
+
/** Current launch/runtime status label. */
|
|
132
|
+
launchStatus?: string;
|
|
133
|
+
/** Effective service URL that will be used when launching. */
|
|
134
|
+
launchBaseUrl?: string;
|
|
113
135
|
identityProviders?: {
|
|
114
136
|
[K in OAuthProvider]?: {
|
|
115
137
|
clientId: string;
|