@axiom-lattice/protocols 2.1.40 → 2.1.42

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/protocols@2.1.40 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@2.1.42 build /home/runner/work/agentic/agentic/packages/protocols
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.mjs 4.63 KB
12
- ESM dist/index.mjs.map 41.44 KB
13
- ESM ⚡️ Build success in 218ms
14
- CJS dist/index.js 6.48 KB
15
- CJS dist/index.js.map 43.04 KB
16
- CJS ⚡️ Build success in 221ms
11
+ CJS dist/index.js 6.69 KB
12
+ CJS dist/index.js.map 44.83 KB
13
+ CJS ⚡️ Build success in 201ms
14
+ ESM dist/index.mjs 4.78 KB
15
+ ESM dist/index.mjs.map 43.07 KB
16
+ ESM ⚡️ Build success in 205ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 9959ms
19
- DTS dist/index.d.ts 99.35 KB
20
- DTS dist/index.d.mts 99.35 KB
18
+ DTS ⚡️ Build success in 12198ms
19
+ DTS dist/index.d.ts 105.73 KB
20
+ DTS dist/index.d.mts 105.73 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 2.1.42
4
+
5
+ ### Patch Changes
6
+
7
+ - b4bdb6c: up new
8
+
9
+ ## 2.1.41
10
+
11
+ ### Patch Changes
12
+
13
+ - ec290af: sqlit store
14
+
3
15
  ## 2.1.40
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -114,6 +114,70 @@ interface ModelLatticeProtocol extends BaseLatticeProtocol<LLMConfig, BaseChatMo
114
114
  bindTools: (tools: any[], options?: any) => any;
115
115
  }
116
116
 
117
+ /**
118
+ * Workflow DSL
119
+ *
120
+ * Concise workflow definition language. A step's `id` is its node id, state
121
+ * output key, and template reference name. The engine auto-generates nodes,
122
+ * edges, and state fields.
123
+ *
124
+ * Template syntax:
125
+ * {{input}} — initial user input
126
+ * {{id}} — output of step with given id
127
+ * {{item}} — current element in map iterations
128
+ */
129
+ interface WorkflowDSL {
130
+ name: string;
131
+ steps: WorkflowStep[];
132
+ }
133
+ type WorkflowStep = AgentStep | ConditionStep | HumanStep | MapStep | ParallelStep | EndStep;
134
+ /** invoke the workflow's built-in agent. type defaults to "agent". */
135
+ interface AgentStep {
136
+ id?: string;
137
+ type?: "agent";
138
+ name?: string;
139
+ prompt: string;
140
+ schema?: Record<string, unknown>;
141
+ }
142
+ /** branch on state field or expression. */
143
+ interface ConditionStep {
144
+ id?: string;
145
+ type: "condition";
146
+ if: string;
147
+ then?: WorkflowStep[] | WorkflowStep;
148
+ else?: WorkflowStep[] | WorkflowStep;
149
+ branches?: Record<string, WorkflowStep[] | WorkflowStep>;
150
+ }
151
+ /** pause for human input. */
152
+ interface HumanStep {
153
+ id?: string;
154
+ type: "human";
155
+ prompt: string;
156
+ title?: string;
157
+ schema?: Record<string, unknown>;
158
+ }
159
+ /** iterate over an array, optionally reducing. */
160
+ interface MapStep {
161
+ id: string;
162
+ type: "map";
163
+ source: string;
164
+ each: AgentStep;
165
+ reduce?: AgentStep;
166
+ batch?: number;
167
+ concurrency?: number;
168
+ }
169
+ /** run steps in parallel, then rejoin. */
170
+ interface ParallelStep {
171
+ id?: string;
172
+ type: "parallel";
173
+ steps: WorkflowStep[];
174
+ }
175
+ /** terminal state. */
176
+ interface EndStep {
177
+ type: "end";
178
+ status?: "success" | "failed";
179
+ }
180
+
117
181
  /**
118
182
  * AgentLatticeProtocol
119
183
  *
@@ -129,7 +193,9 @@ declare enum AgentType {
129
193
  TEAM = "team",
130
194
  PROCESSING = "processing",
131
195
  /** Remote A2A agent — delegates to an external A2A-compatible server */
132
- A2A_REMOTE = "a2a_remote"
196
+ A2A_REMOTE = "a2a_remote",
197
+ /** Workflow agent — compiled from JSON DSL into a LangGraph StateGraph */
198
+ WORKFLOW = "workflow"
133
199
  }
134
200
  /**
135
201
  * Runtime configuration that will be injected into LangGraphRunnableConfig.configurable
@@ -164,6 +230,21 @@ interface BaseAgentConfig {
164
230
  runConfig?: AgentRunConfig;
165
231
  skillCategories?: string[];
166
232
  middleware?: AgentMiddlewareConfig[];
233
+ /**
234
+ * Structured output response format for the agent.
235
+ * Supports Zod schema (z.object({...})), JSON Schema object ({ type: "object", properties: {...} }),
236
+ * providerStrategy(), toolStrategy(), and other formats accepted by the underlying model.
237
+ *
238
+ * @example
239
+ * ```ts
240
+ * // Zod schema
241
+ * responseFormat: z.object({ name: z.string(), age: z.number() })
242
+ *
243
+ * // JSON Schema
244
+ * responseFormat: { type: "object", properties: { name: { type: "string" } }, required: ["name"] }
245
+ * ```
246
+ */
247
+ responseFormat?: any;
167
248
  }
168
249
  type AvailableModule = "filesystem" | "code_eval" | "browser";
169
250
  interface SandboxMiddlewareConfig {
@@ -319,19 +400,37 @@ interface A2ARemoteAgentConfig extends BaseAgentConfig {
319
400
  */
320
401
  tools?: string[];
321
402
  }
403
+ /**
404
+ * WORKFLOW agent configuration — compiled from JSON DSL into a LangGraph StateGraph.
405
+ *
406
+ * The workflow field contains the full DSL definition (nodes, edges, state).
407
+ * The WorkflowAgentGraphBuilder compiles this into a multi-node LangGraph
408
+ * where each node invokes a registered sub-agent by ref.
409
+ */
410
+ interface WorkflowAgentConfig extends BaseAgentConfig {
411
+ type: AgentType.WORKFLOW;
412
+ /** The Workflow DSL definition */
413
+ workflow: WorkflowDSL;
414
+ /** Optional tool keys (not used by workflow graph directly, but included for type compatibility) */
415
+ tools?: string[];
416
+ }
322
417
  /**
323
418
  * Type guard to check if config is A2ARemoteAgentConfig
324
419
  */
325
420
  declare function isA2ARemoteAgentConfig(config: AgentConfig): config is A2ARemoteAgentConfig;
421
+ /**
422
+ * Type guard to check if config is WorkflowAgentConfig
423
+ */
424
+ declare function isWorkflowAgentConfig(config: AgentConfig): config is WorkflowAgentConfig;
326
425
  /**
327
426
  * Agent configuration union type
328
427
  * Different agent types have different configuration options
329
428
  */
330
- type AgentConfig = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig;
429
+ type AgentConfig = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
331
430
  /**
332
431
  * Agent configuration with tools property
333
432
  */
334
- type AgentConfigWithTools = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig;
433
+ type AgentConfigWithTools = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
335
434
  /**
336
435
  * Type guard to check if config has tools property
337
436
  */
@@ -2822,7 +2921,7 @@ interface TopologyEdge {
2822
2921
  to: string;
2823
2922
  purpose: string;
2824
2923
  }
2825
- type WorkflowRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
2924
+ type WorkflowRunStatus = 'running' | 'completed' | 'failed' | 'cancelled' | 'interrupted';
2826
2925
  interface WorkflowRun {
2827
2926
  id: string;
2828
2927
  tenantId: string;
@@ -2835,11 +2934,11 @@ interface WorkflowRun {
2835
2934
  errorMessage?: string;
2836
2935
  metadata?: Record<string, any>;
2837
2936
  startedAt: Date;
2838
- completedAt?: Date;
2937
+ completedAt?: Date | null;
2839
2938
  createdAt: Date;
2840
2939
  updatedAt: Date;
2841
2940
  }
2842
- type StepType = 'task_delegation' | 'tool_call' | 'human_in_loop' | 'topology_transition';
2941
+ type StepType = 'task_delegation' | 'tool_call' | 'human_in_loop' | 'topology_transition' | 'agent' | 'human_feedback' | 'map' | 'input' | 'terminal';
2843
2942
  type StepStatus = 'running' | 'completed' | 'failed' | 'interrupted';
2844
2943
  interface RunStep {
2845
2944
  id: string;
@@ -2855,7 +2954,7 @@ interface RunStep {
2855
2954
  status: StepStatus;
2856
2955
  errorMessage?: string;
2857
2956
  startedAt: Date;
2858
- completedAt?: Date;
2957
+ completedAt?: Date | null;
2859
2958
  durationMs?: number;
2860
2959
  createdAt: Date;
2861
2960
  updatedAt: Date;
@@ -2871,7 +2970,7 @@ interface UpdateWorkflowRunRequest {
2871
2970
  status?: WorkflowRunStatus;
2872
2971
  completedEdges?: number;
2873
2972
  errorMessage?: string;
2874
- completedAt?: Date;
2973
+ completedAt?: Date | null;
2875
2974
  metadata?: Record<string, any>;
2876
2975
  }
2877
2976
  interface CreateRunStepRequest {
@@ -2888,7 +2987,7 @@ interface UpdateRunStepRequest {
2888
2987
  status?: StepStatus;
2889
2988
  output?: Record<string, any>;
2890
2989
  errorMessage?: string;
2891
- completedAt?: Date;
2990
+ completedAt?: Date | null;
2892
2991
  durationMs?: number;
2893
2992
  }
2894
2993
  interface WorkflowTrackingStore {
@@ -2900,6 +2999,8 @@ interface WorkflowTrackingStore {
2900
2999
  getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
2901
3000
  getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
2902
3001
  createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
3002
+ /** Idempotent create — uses (runId, stepType, stepName) as unique key. Returns existing step if one already exists. */
3003
+ upsertRunStep(request: CreateRunStepRequest): Promise<RunStep>;
2903
3004
  updateRunStep(runId: string, stepId: string, updates: UpdateRunStepRequest): Promise<RunStep | null>;
2904
3005
  getRunSteps(runId: string): Promise<RunStep[]>;
2905
3006
  getRunStepsByType(runId: string, stepType: StepType): Promise<RunStep[]>;
@@ -3379,6 +3480,104 @@ interface A2AApiKeyStore {
3379
3480
  loadIntoMap(): Promise<Map<string, A2AApiKeyEntry>>;
3380
3481
  }
3381
3482
 
3483
+ /**
3484
+ * Internal DSL — expanded intermediate representation.
3485
+ *
3486
+ * Generated by the WorkflowDSL expander. Consumed by compileWorkflow.
3487
+ * Not part of the public API — use WorkflowDSL (concise) instead.
3488
+ */
3489
+ interface InternalDSL {
3490
+ version: "1.0";
3491
+ name: string;
3492
+ description?: string;
3493
+ state?: InternalState;
3494
+ nodes: InternalNode[];
3495
+ edges: InternalEdge[];
3496
+ }
3497
+ interface InternalState {
3498
+ fields: Record<string, InternalStateField>;
3499
+ }
3500
+ interface InternalStateField {
3501
+ type: "string" | "number" | "boolean" | "object" | "array";
3502
+ default?: unknown;
3503
+ reducer?: "replace" | "append" | "merge";
3504
+ }
3505
+ type InternalNode = InternalAgentNode | InternalHumanFeedbackNode | InternalMapNode | InternalTerminalNode | InternalInputNode;
3506
+ interface InternalBaseNode {
3507
+ id: string;
3508
+ type: "agent" | "human_feedback" | "map" | "terminal" | "input";
3509
+ name: string;
3510
+ description?: string;
3511
+ config?: InternalNodeConfig;
3512
+ input?: InternalInput;
3513
+ output?: InternalOutput;
3514
+ }
3515
+ interface InternalAgentNode extends InternalBaseNode {
3516
+ type: "agent";
3517
+ ref?: string;
3518
+ }
3519
+ interface InternalHumanFeedbackNode extends InternalBaseNode {
3520
+ type: "human_feedback";
3521
+ config: InternalNodeConfig & {
3522
+ title?: string;
3523
+ };
3524
+ }
3525
+ interface InternalMapNode extends InternalBaseNode {
3526
+ type: "map";
3527
+ source: string;
3528
+ itemKey?: string;
3529
+ config?: InternalNodeConfig & {
3530
+ batchSize?: number;
3531
+ maxConcurrency?: number;
3532
+ innerConcurrency?: number;
3533
+ };
3534
+ node: {
3535
+ type: "agent";
3536
+ ref?: string;
3537
+ input?: InternalInput;
3538
+ schema?: Record<string, unknown>;
3539
+ };
3540
+ reduce?: {
3541
+ ref?: string;
3542
+ input?: InternalInput;
3543
+ schema?: Record<string, unknown>;
3544
+ };
3545
+ }
3546
+ interface InternalTerminalNode extends InternalBaseNode {
3547
+ type: "terminal";
3548
+ status: "success" | "failed" | "cancelled";
3549
+ }
3550
+ interface InternalInputNode extends InternalBaseNode {
3551
+ type: "input";
3552
+ /** output key for the user message (typically "input") */
3553
+ output: InternalOutput;
3554
+ }
3555
+ type InternalInput = {
3556
+ template: string;
3557
+ };
3558
+ interface InternalOutput {
3559
+ schema?: Record<string, unknown>;
3560
+ key?: string;
3561
+ }
3562
+ interface InternalEdge {
3563
+ from: string;
3564
+ to?: string | string[];
3565
+ type?: "normal" | "conditional";
3566
+ name?: string;
3567
+ rule?: InternalEdgeRule;
3568
+ }
3569
+ interface InternalEdgeRule {
3570
+ type: "state_field" | "expression";
3571
+ field?: string;
3572
+ code?: string;
3573
+ mapping: Record<string, string>;
3574
+ }
3575
+ interface InternalNodeConfig {
3576
+ timeout?: number;
3577
+ maxRetries?: number;
3578
+ retryOn?: string[];
3579
+ }
3580
+
3382
3581
  /**
3383
3582
  * 通用类型定义
3384
3583
  *
@@ -3442,4 +3641,4 @@ type Timestamp = number;
3442
3641
  */
3443
3642
  type Callback<T = any, R = void> = (data: T) => R | Promise<R>;
3444
3643
 
3445
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateSkillRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type ID, type InboundMessage, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OutboundMessage, type PaginatedResult, type PaginationParams, type PinoFileOptions, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type Result, type RunStep, type SandboxMiddlewareConfig, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskHandler, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreLatticeProtocol, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig };
3644
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMiddlewareConfig, type AgentRunConfig, type AgentStep, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type ConditionStep, type CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateSkillRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EndStep, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HumanStep, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalEdgeRule, type InternalHumanFeedbackNode, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, type MapStep, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OutboundMessage, type PaginatedResult, type PaginationParams, type ParallelStep, type PinoFileOptions, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type Result, type RunStep, type SandboxMiddlewareConfig, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskHandler, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreLatticeProtocol, type WorkflowAgentConfig, type WorkflowDSL, type WorkflowRun, type WorkflowRunStatus, type WorkflowStep, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };