@axiom-lattice/core 2.1.56 → 2.1.58

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/dist/index.d.mts CHANGED
@@ -4,21 +4,21 @@ export { HumanMessage } from '@langchain/core/messages';
4
4
  import { ZodType } from 'zod/v3';
5
5
  import { $ZodType } from 'zod/v4/core';
6
6
  import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
7
- import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/language_models/base';
7
+ import { BaseLanguageModelInput, LanguageModelLike, BaseLanguageModel } from '@langchain/core/language_models/base';
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } from '@axiom-lattice/protocols';
11
+ import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
13
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
15
- import { ReactAgent, AgentMiddleware } from 'langchain';
15
+ import { ReactAgent, AgentMiddleware, StructuredTool as StructuredTool$1, InterruptOnConfig } from 'langchain';
16
16
  import z, { z as z$1 } from 'zod';
17
17
  import { BaseStore, BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
18
18
  import * as _langchain_core_tools from '@langchain/core/tools';
19
19
  import { StructuredTool } from '@langchain/core/tools';
20
20
  import * as _langchain_langgraph from '@langchain/langgraph';
21
- import { CompiledStateGraph, CommandParams } from '@langchain/langgraph';
21
+ import { CompiledStateGraph, CommandParams, AnnotationRoot } from '@langchain/langgraph';
22
22
  import { ReplaySubject } from 'rxjs';
23
23
  import { Embeddings } from '@langchain/core/embeddings';
24
24
  import { VectorStore } from '@langchain/core/vectorstores';
@@ -26,6 +26,8 @@ import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
26
26
  import { SandboxClient } from '@agent-infra/sandbox';
27
27
  import { Sandbox } from 'e2b';
28
28
  import { Sandbox as Sandbox$1 } from '@daytonaio/sdk';
29
+ import { Runnable } from '@langchain/core/runnables';
30
+ import { InteropZodObject } from '@langchain/core/utils/types';
29
31
 
30
32
  /**
31
33
  * BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
@@ -2660,6 +2662,7 @@ type StoreTypeMap = {
2660
2662
  tenant: TenantStore;
2661
2663
  userTenantLink: UserTenantLinkStore;
2662
2664
  threadMessageQueue: IMessageQueueStore;
2665
+ workflowTracking: WorkflowTrackingStore;
2663
2666
  };
2664
2667
  /**
2665
2668
  * Store type keys
@@ -2996,6 +2999,14 @@ declare class SandboxSkillStore implements SkillStore {
2996
2999
  private sandboxManager?;
2997
3000
  private defaultContext;
2998
3001
  constructor(options?: SandboxSkillStoreOptions);
3002
+ /**
3003
+ * Build a Skill object from a built-in skill definition.
3004
+ */
3005
+ private _builtInSkill;
3006
+ /**
3007
+ * Get all built-in skills as Skill objects for a tenant.
3008
+ */
3009
+ private _allBuiltInSkills;
2999
3010
  /**
3000
3011
  * Get sandbox manager
3001
3012
  */
@@ -3684,6 +3695,42 @@ declare function parseSkillFrontmatter(content: string): {
3684
3695
  */
3685
3696
  declare function buildSkillFile(meta: SkillMeta, body: string): string;
3686
3697
 
3698
+ /**
3699
+ * Built-in Skills
3700
+ *
3701
+ * Skills defined here are injected into the agent's available skill list
3702
+ * at runtime. They are NEVER written to the sandbox — they exist only in
3703
+ * memory and cannot be modified or deleted by the agent.
3704
+ */
3705
+
3706
+ /**
3707
+ * Map of built-in skill name to full SKILL.md content.
3708
+ * Add new built-in skills here to make them automatically available.
3709
+ */
3710
+ declare const BUILTIN_SKILLS: Record<string, string>;
3711
+ /**
3712
+ * Parse metadata from a built-in skill content.
3713
+ * Returns null if the skill content cannot be parsed.
3714
+ */
3715
+ declare function getBuiltInSkillMeta(name: string): SkillMeta | null;
3716
+ /**
3717
+ * Get the full content of a built-in skill by name.
3718
+ * Returns undefined if the skill is not a built-in.
3719
+ */
3720
+ declare function getBuiltInSkillContent(name: string): string | undefined;
3721
+ /**
3722
+ * Get metadata for all built-in skills.
3723
+ */
3724
+ declare function getAllBuiltInSkillMetas(): SkillMeta[];
3725
+ /**
3726
+ * Get all built-in skill names.
3727
+ */
3728
+ declare function getBuiltInSkillNames(): string[];
3729
+ /**
3730
+ * Check if a skill name refers to a built-in skill.
3731
+ */
3732
+ declare function isBuiltInSkill(name: string): boolean;
3733
+
3687
3734
  /**
3688
3735
  * McpLatticeManager
3689
3736
  *
@@ -5222,6 +5269,82 @@ declare function buildGrepResultsDict(matches: GrepMatch[]): Record<string, Arra
5222
5269
  */
5223
5270
  declare function formatGrepMatches(matches: GrepMatch[], outputMode: "files_with_matches" | "content" | "count"): string;
5224
5271
 
5272
+ /**
5273
+ * Type definitions for pre-compiled agents.
5274
+ */
5275
+ interface CompiledSubAgent {
5276
+ /** The key of the agent */
5277
+ key: string;
5278
+ /** The name of the agent */
5279
+ name: string;
5280
+ /** The description of the agent */
5281
+ description: string;
5282
+ /** The agent instance */
5283
+ runnable: AgentClient | Runnable;
5284
+ }
5285
+ /**
5286
+ * Type definitions for subagents
5287
+ */
5288
+ interface SubAgent {
5289
+ /** The key of the agent */
5290
+ key: string;
5291
+ /** The name of the agent */
5292
+ name: string;
5293
+ /** The description of the agent */
5294
+ description: string;
5295
+ /** The system prompt to use for the agent */
5296
+ systemPrompt: string;
5297
+ /** The tools to use for the agent (tool instances, not names). Defaults to defaultTools */
5298
+ tools?: StructuredTool$1[];
5299
+ /** The model for the agent. Defaults to default_model */
5300
+ model?: LanguageModelLike | string;
5301
+ /** Additional middleware to append after default_middleware */
5302
+ middleware?: AgentMiddleware[];
5303
+ /** The tool configs to use for the agent */
5304
+ interruptOn?: Record<string, boolean | InterruptOnConfig>;
5305
+ }
5306
+
5307
+ interface SchedulerMiddlewareOptions {
5308
+ defaultMaxRetries?: number;
5309
+ }
5310
+ declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5311
+
5312
+ interface TopologyEdge {
5313
+ from: string;
5314
+ to: string;
5315
+ purpose: string;
5316
+ }
5317
+
5318
+ interface CreateProcessingAgentParams<ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>> {
5319
+ model?: BaseLanguageModel | string;
5320
+ tools?: StructuredTool[];
5321
+ systemPrompt?: string;
5322
+ middleware?: AgentMiddleware[];
5323
+ subagents?: (SubAgent | CompiledSubAgent)[];
5324
+ responseFormat?: any;
5325
+ contextSchema?: ContextSchema;
5326
+ checkpointer?: BaseCheckpointSaver | boolean;
5327
+ store?: BaseStore;
5328
+ backend?: BackendProtocol | ((config: {
5329
+ state: unknown;
5330
+ store?: BaseStore;
5331
+ }) => Promise<BackendProtocol>);
5332
+ interruptOn?: Record<string, boolean | InterruptOnConfig>;
5333
+ name?: string;
5334
+ skills?: string[];
5335
+ topologyEdges: TopologyEdge[];
5336
+ }
5337
+ /**
5338
+ * Create a Processing Agent with middleware-based architecture.
5339
+ *
5340
+ * Same as createDeepAgent, but replaces todoListMiddleware with
5341
+ * topologyMiddleware for workflow topology enforcement.
5342
+ *
5343
+ * @param params Configuration parameters for the agent
5344
+ * @returns ReactAgent instance ready for invocation
5345
+ */
5346
+ declare function createProcessingAgent<ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>>(params: CreateProcessingAgentParams<ContextSchema>): ReactAgent<any, any, ContextSchema, any>;
5347
+
5225
5348
  /**
5226
5349
  * Event bus service
5227
5350
  * Used for event publishing and subscription between internal system components
@@ -5275,6 +5398,9 @@ declare class AgentManager {
5275
5398
  command?: any;
5276
5399
  "x-tenant-id": string;
5277
5400
  runConfig?: Record<string, unknown>;
5401
+ main_thread_id?: string;
5402
+ main_tenant_id?: string;
5403
+ main_assistant_id?: string;
5278
5404
  }, return_agent_state?: boolean): Promise<unknown>;
5279
5405
  }
5280
5406
 
@@ -5369,6 +5495,14 @@ interface AgentThreadInterface {
5369
5495
  project_id?: string;
5370
5496
  custom_run_config?: any;
5371
5497
  }
5498
+ interface AsyncTaskRecord {
5499
+ taskId: string;
5500
+ assistantId: string;
5501
+ description: string;
5502
+ status: 'running' | 'completed' | 'failed' | 'cancelled';
5503
+ createdAt: number;
5504
+ completedAt?: number;
5505
+ }
5372
5506
  declare class Agent {
5373
5507
  private queueStore;
5374
5508
  private stateChecker;
@@ -5382,6 +5516,7 @@ declare class Agent {
5382
5516
  custom_run_config: any;
5383
5517
  queueMode: ThreadQueueConfig;
5384
5518
  private isWaitingForQueueEnd;
5519
+ asyncTasks: AsyncTaskRecord[];
5385
5520
  constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
5386
5521
  private getHumanPendingContent;
5387
5522
  /**
@@ -5482,6 +5617,10 @@ declare class Agent {
5482
5617
  * Publish lifecycle event (internal use)
5483
5618
  */
5484
5619
  private publish;
5620
+ addAsyncTask(task: AsyncTaskRecord): void;
5621
+ getAsyncTasks(): AsyncTaskRecord[];
5622
+ getAsyncTask(taskId: string): AsyncTaskRecord | undefined;
5623
+ updateAsyncTaskStatus(taskId: string, status: AsyncTaskRecord['status']): void;
5485
5624
  }
5486
5625
 
5487
5626
  /**
@@ -5666,9 +5805,4 @@ interface UnknownToolHandlerConfig {
5666
5805
  */
5667
5806
  declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
5668
5807
 
5669
- interface SchedulerMiddlewareOptions {
5670
- defaultMaxRetries?: number;
5671
- }
5672
- declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5673
-
5674
- export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
5808
+ export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
package/dist/index.d.ts CHANGED
@@ -4,21 +4,21 @@ export { HumanMessage } from '@langchain/core/messages';
4
4
  import { ZodType } from 'zod/v3';
5
5
  import { $ZodType } from 'zod/v4/core';
6
6
  import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models';
7
- import { BaseLanguageModelInput, LanguageModelLike } from '@langchain/core/language_models/base';
7
+ import { BaseLanguageModelInput, LanguageModelLike, BaseLanguageModel } from '@langchain/core/language_models/base';
8
8
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
9
9
  import { ChatResult } from '@langchain/core/outputs';
10
10
  import * as _axiom_lattice_protocols from '@axiom-lattice/protocols';
11
- import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } from '@axiom-lattice/protocols';
11
+ import { LLMConfig, SemanticMetricsServerConfig, MetricMeta, MetricQueryResult, DataSource, SemanticMetricsQueryRequest, SemanticMetricsQueryResponse, TableQueryRequest, TableQueryResponse, ExecuteSqlQueryRequest, ExecuteSqlQueryResponse, MetricsServerType, MetricsServerConfig, ToolConfig, ToolExecutor, AgentConfig, MiddlewareType, GraphBuildOptions, MessageChunk, MessageChunkType, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, SkillStore, WorkspaceStore, ProjectStore, DatabaseConfigStore, MetricsServerConfigStore, McpServerConfigStore, UserStore, TenantStore, UserTenantLinkStore, WorkflowTrackingStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, Skill, CreateSkillRequest, SkillStoreContext, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, User, CreateUserRequest, UpdateUserRequest, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext, SkillConfig, SkillClient } from '@axiom-lattice/protocols';
12
12
  export { _axiom_lattice_protocols as Protocols };
13
13
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
14
14
  import * as langchain from 'langchain';
15
- import { ReactAgent, AgentMiddleware } from 'langchain';
15
+ import { ReactAgent, AgentMiddleware, StructuredTool as StructuredTool$1, InterruptOnConfig } from 'langchain';
16
16
  import z, { z as z$1 } from 'zod';
17
17
  import { BaseStore, BaseCheckpointSaver } from '@langchain/langgraph-checkpoint';
18
18
  import * as _langchain_core_tools from '@langchain/core/tools';
19
19
  import { StructuredTool } from '@langchain/core/tools';
20
20
  import * as _langchain_langgraph from '@langchain/langgraph';
21
- import { CompiledStateGraph, CommandParams } from '@langchain/langgraph';
21
+ import { CompiledStateGraph, CommandParams, AnnotationRoot } from '@langchain/langgraph';
22
22
  import { ReplaySubject } from 'rxjs';
23
23
  import { Embeddings } from '@langchain/core/embeddings';
24
24
  import { VectorStore } from '@langchain/core/vectorstores';
@@ -26,6 +26,8 @@ import { Connection, MultiServerMCPClient } from '@langchain/mcp-adapters';
26
26
  import { SandboxClient } from '@agent-infra/sandbox';
27
27
  import { Sandbox } from 'e2b';
28
28
  import { Sandbox as Sandbox$1 } from '@daytonaio/sdk';
29
+ import { Runnable } from '@langchain/core/runnables';
30
+ import { InteropZodObject } from '@langchain/core/utils/types';
29
31
 
30
32
  /**
31
33
  * BaseLatticeManager - 抽象基类,为各种Lattice管理器提供通用功能
@@ -2660,6 +2662,7 @@ type StoreTypeMap = {
2660
2662
  tenant: TenantStore;
2661
2663
  userTenantLink: UserTenantLinkStore;
2662
2664
  threadMessageQueue: IMessageQueueStore;
2665
+ workflowTracking: WorkflowTrackingStore;
2663
2666
  };
2664
2667
  /**
2665
2668
  * Store type keys
@@ -2996,6 +2999,14 @@ declare class SandboxSkillStore implements SkillStore {
2996
2999
  private sandboxManager?;
2997
3000
  private defaultContext;
2998
3001
  constructor(options?: SandboxSkillStoreOptions);
3002
+ /**
3003
+ * Build a Skill object from a built-in skill definition.
3004
+ */
3005
+ private _builtInSkill;
3006
+ /**
3007
+ * Get all built-in skills as Skill objects for a tenant.
3008
+ */
3009
+ private _allBuiltInSkills;
2999
3010
  /**
3000
3011
  * Get sandbox manager
3001
3012
  */
@@ -3684,6 +3695,42 @@ declare function parseSkillFrontmatter(content: string): {
3684
3695
  */
3685
3696
  declare function buildSkillFile(meta: SkillMeta, body: string): string;
3686
3697
 
3698
+ /**
3699
+ * Built-in Skills
3700
+ *
3701
+ * Skills defined here are injected into the agent's available skill list
3702
+ * at runtime. They are NEVER written to the sandbox — they exist only in
3703
+ * memory and cannot be modified or deleted by the agent.
3704
+ */
3705
+
3706
+ /**
3707
+ * Map of built-in skill name to full SKILL.md content.
3708
+ * Add new built-in skills here to make them automatically available.
3709
+ */
3710
+ declare const BUILTIN_SKILLS: Record<string, string>;
3711
+ /**
3712
+ * Parse metadata from a built-in skill content.
3713
+ * Returns null if the skill content cannot be parsed.
3714
+ */
3715
+ declare function getBuiltInSkillMeta(name: string): SkillMeta | null;
3716
+ /**
3717
+ * Get the full content of a built-in skill by name.
3718
+ * Returns undefined if the skill is not a built-in.
3719
+ */
3720
+ declare function getBuiltInSkillContent(name: string): string | undefined;
3721
+ /**
3722
+ * Get metadata for all built-in skills.
3723
+ */
3724
+ declare function getAllBuiltInSkillMetas(): SkillMeta[];
3725
+ /**
3726
+ * Get all built-in skill names.
3727
+ */
3728
+ declare function getBuiltInSkillNames(): string[];
3729
+ /**
3730
+ * Check if a skill name refers to a built-in skill.
3731
+ */
3732
+ declare function isBuiltInSkill(name: string): boolean;
3733
+
3687
3734
  /**
3688
3735
  * McpLatticeManager
3689
3736
  *
@@ -5222,6 +5269,82 @@ declare function buildGrepResultsDict(matches: GrepMatch[]): Record<string, Arra
5222
5269
  */
5223
5270
  declare function formatGrepMatches(matches: GrepMatch[], outputMode: "files_with_matches" | "content" | "count"): string;
5224
5271
 
5272
+ /**
5273
+ * Type definitions for pre-compiled agents.
5274
+ */
5275
+ interface CompiledSubAgent {
5276
+ /** The key of the agent */
5277
+ key: string;
5278
+ /** The name of the agent */
5279
+ name: string;
5280
+ /** The description of the agent */
5281
+ description: string;
5282
+ /** The agent instance */
5283
+ runnable: AgentClient | Runnable;
5284
+ }
5285
+ /**
5286
+ * Type definitions for subagents
5287
+ */
5288
+ interface SubAgent {
5289
+ /** The key of the agent */
5290
+ key: string;
5291
+ /** The name of the agent */
5292
+ name: string;
5293
+ /** The description of the agent */
5294
+ description: string;
5295
+ /** The system prompt to use for the agent */
5296
+ systemPrompt: string;
5297
+ /** The tools to use for the agent (tool instances, not names). Defaults to defaultTools */
5298
+ tools?: StructuredTool$1[];
5299
+ /** The model for the agent. Defaults to default_model */
5300
+ model?: LanguageModelLike | string;
5301
+ /** Additional middleware to append after default_middleware */
5302
+ middleware?: AgentMiddleware[];
5303
+ /** The tool configs to use for the agent */
5304
+ interruptOn?: Record<string, boolean | InterruptOnConfig>;
5305
+ }
5306
+
5307
+ interface SchedulerMiddlewareOptions {
5308
+ defaultMaxRetries?: number;
5309
+ }
5310
+ declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5311
+
5312
+ interface TopologyEdge {
5313
+ from: string;
5314
+ to: string;
5315
+ purpose: string;
5316
+ }
5317
+
5318
+ interface CreateProcessingAgentParams<ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>> {
5319
+ model?: BaseLanguageModel | string;
5320
+ tools?: StructuredTool[];
5321
+ systemPrompt?: string;
5322
+ middleware?: AgentMiddleware[];
5323
+ subagents?: (SubAgent | CompiledSubAgent)[];
5324
+ responseFormat?: any;
5325
+ contextSchema?: ContextSchema;
5326
+ checkpointer?: BaseCheckpointSaver | boolean;
5327
+ store?: BaseStore;
5328
+ backend?: BackendProtocol | ((config: {
5329
+ state: unknown;
5330
+ store?: BaseStore;
5331
+ }) => Promise<BackendProtocol>);
5332
+ interruptOn?: Record<string, boolean | InterruptOnConfig>;
5333
+ name?: string;
5334
+ skills?: string[];
5335
+ topologyEdges: TopologyEdge[];
5336
+ }
5337
+ /**
5338
+ * Create a Processing Agent with middleware-based architecture.
5339
+ *
5340
+ * Same as createDeepAgent, but replaces todoListMiddleware with
5341
+ * topologyMiddleware for workflow topology enforcement.
5342
+ *
5343
+ * @param params Configuration parameters for the agent
5344
+ * @returns ReactAgent instance ready for invocation
5345
+ */
5346
+ declare function createProcessingAgent<ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>>(params: CreateProcessingAgentParams<ContextSchema>): ReactAgent<any, any, ContextSchema, any>;
5347
+
5225
5348
  /**
5226
5349
  * Event bus service
5227
5350
  * Used for event publishing and subscription between internal system components
@@ -5275,6 +5398,9 @@ declare class AgentManager {
5275
5398
  command?: any;
5276
5399
  "x-tenant-id": string;
5277
5400
  runConfig?: Record<string, unknown>;
5401
+ main_thread_id?: string;
5402
+ main_tenant_id?: string;
5403
+ main_assistant_id?: string;
5278
5404
  }, return_agent_state?: boolean): Promise<unknown>;
5279
5405
  }
5280
5406
 
@@ -5369,6 +5495,14 @@ interface AgentThreadInterface {
5369
5495
  project_id?: string;
5370
5496
  custom_run_config?: any;
5371
5497
  }
5498
+ interface AsyncTaskRecord {
5499
+ taskId: string;
5500
+ assistantId: string;
5501
+ description: string;
5502
+ status: 'running' | 'completed' | 'failed' | 'cancelled';
5503
+ createdAt: number;
5504
+ completedAt?: number;
5505
+ }
5372
5506
  declare class Agent {
5373
5507
  private queueStore;
5374
5508
  private stateChecker;
@@ -5382,6 +5516,7 @@ declare class Agent {
5382
5516
  custom_run_config: any;
5383
5517
  queueMode: ThreadQueueConfig;
5384
5518
  private isWaitingForQueueEnd;
5519
+ asyncTasks: AsyncTaskRecord[];
5385
5520
  constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
5386
5521
  private getHumanPendingContent;
5387
5522
  /**
@@ -5482,6 +5617,10 @@ declare class Agent {
5482
5617
  * Publish lifecycle event (internal use)
5483
5618
  */
5484
5619
  private publish;
5620
+ addAsyncTask(task: AsyncTaskRecord): void;
5621
+ getAsyncTasks(): AsyncTaskRecord[];
5622
+ getAsyncTask(taskId: string): AsyncTaskRecord | undefined;
5623
+ updateAsyncTaskStatus(taskId: string, status: AsyncTaskRecord['status']): void;
5485
5624
  }
5486
5625
 
5487
5626
  /**
@@ -5666,9 +5805,4 @@ interface UnknownToolHandlerConfig {
5666
5805
  */
5667
5806
  declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
5668
5807
 
5669
- interface SchedulerMiddlewareOptions {
5670
- defaultMaxRetries?: number;
5671
- }
5672
- declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
5673
-
5674
- export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ToolDefinition, type ToolLattice, ToolLatticeManager, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };
5808
+ export { AGENT_TASK_EVENT, type AddMessageParams, Agent, type AgentClient, type AgentExecutor, AgentInstanceManager, type AgentLattice, AgentLatticeManager, type AgentLifecycleEventName, AgentManager, type AgentStreamExecutor, type AgentThreadInterface, BUILTIN_SKILLS, type BackendFactory, type BackendProtocol, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, CompositeBackend, ConsoleLoggerClient, type CreateProcessingAgentParams, type CreateSandboxProviderConfig, type CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DaytonaInstance, DaytonaProvider, type DaytonaProviderConfig, DefaultScheduleClient, E2BInstance, E2BProvider, type E2BProviderConfig, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type EnsureMicrosandboxInput, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type FsEntry, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, LINE_NUMBER_WIDTH, type LangGraphStateChecker, type LoggerLattice, LoggerLatticeManager, MAX_LINE_LENGTH, type MailboxMessage, type MailboxStore, type McpLatticeInterface, McpLatticeManager, type McpServerInfo, MemoryBackend, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type MessageCompletedEvent, type MessageFailedEvent, type MessageStartedEvent, MessageType, MetricsServerManager, MicrosandboxRemoteInstance, MicrosandboxRemoteProvider, type MicrosandboxRemoteProviderClient, type MicrosandboxRemoteProviderConfig, MicrosandboxServiceClient, type MicrosandboxServiceClientConfig, type MicrosandboxShellExecInput, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, RemoteSandboxInstance, RemoteSandboxProvider, type RemoteSandboxProviderConfig, type RunSandboxConfig, type RuntimeModelConfig, type SandboxFileInfo, type SandboxFileService, SandboxFilesystem, type SandboxInstance, type SandboxIsolationLevel, SandboxLatticeManager, type SandboxManagerProtocol, type SandboxProvider, type SandboxShellService, SandboxSkillStore, type SandboxSkillStoreOptions, type SandboxVolumeDefinition, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, type SkillMeta, type SkillResource, SqlDatabaseManager, type StateAndStore, StateBackend, StoreBackend, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, TOOL_RESULT_TOKEN_LIMIT, TRUNCATION_GUIDANCE, type TableInfo, type TableSchema, type TaskEvent, type TaskListStore, type TaskSpec, TaskStatus, type TaskUpdatable, TeamAgentGraphBuilder, type TeamConfig, type TeamMiddlewareOptions, type TeamTask, type TeammateSpec, type TeammateToolsOptions, type ThreadBuffer, type ThreadBufferConfig, type ThreadBusyEvent, type ThreadIdleEvent, type ThreadInfo, type ThreadQueueConfig, type ThreadState, ThreadStatus, type ThreadStatusChangedEvent, type ToolDefinition, type ToolLattice, ToolLatticeManager, type TopologyEdge, type UnknownToolHandlerConfig, type VectorStoreLatticeInterface, VectorStoreLatticeManager, VolumeFilesystem, type VolumeFsClient, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, buildNamedVolumeName, buildSandboxMetadataEnv, buildSkillFile, checkEmptyContent, clearEncryptionKeyCache, computeSandboxName, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createProcessingAgent, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createSandboxProvider, createSchedulerMiddleware, createTeamMiddleware, createTeammateTools, createUnknownToolHandlerMiddleware, createWidgetMiddleware, decrypt, describeCronExpression, embeddingsLatticeManager, encrypt, eventBus, eventBus as eventBusDefault, fileDataToString, formatContentWithLineNumbers, formatGrepMatches, formatGrepResults, formatReadResponse, getAgentClient, getAgentConfig, getAllAgentConfigs, getAllBuiltInSkillMetas, getAllToolDefinitions, getBuiltInSkillContent, getBuiltInSkillMeta, getBuiltInSkillNames, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getEncryptionKey, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getSandBoxManager, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, globSearchFiles, grepMatchesFromFiles, grepSearchFiles, hasChunkBuffer, isBuiltInSkill, isUsingDefaultKey, isValidCronExpression, isValidSandboxName, isValidSkillName, loggerLatticeManager, mcpManager, metricsServerManager, modelLatticeManager, normalizeSandboxName, parseCronExpression, parseSkillFrontmatter, performStringReplacement, queueLatticeManager, registerAgentLattice, registerAgentLatticeWithTenant, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerExistingTool, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerTeammateAgent, registerToolLattice, registerVectorStoreLattice, sandboxLatticeManager, sanitizeToolCallId, scheduleLatticeManager, skillLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, truncateIfTooLong, unregisterTeammateAgent, updateFileData, validateAgentInput, validateEncryptionKey, validatePath, validateSkillName, validateToolInput, vectorStoreLatticeManager };