@axiom-lattice/core 2.1.46 → 2.1.48
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 +26 -4
- package/dist/index.d.ts +26 -4
- package/dist/index.js +7818 -7531
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7912 -7626
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2267,9 +2267,9 @@ interface PendingMessage {
|
|
|
2267
2267
|
custom_run_config?: unknown;
|
|
2268
2268
|
}
|
|
2269
2269
|
interface PendingQueueMessageInput {
|
|
2270
|
-
message
|
|
2270
|
+
message?: string;
|
|
2271
2271
|
id?: string;
|
|
2272
|
-
messages?:
|
|
2272
|
+
messages?: MessageLike[];
|
|
2273
2273
|
[key: string]: unknown;
|
|
2274
2274
|
}
|
|
2275
2275
|
interface PendingQueueMessage {
|
|
@@ -2338,6 +2338,16 @@ type LangGraphStateChecker = (tenantId: string, assistantId: string, threadId: s
|
|
|
2338
2338
|
* Returns an async iterable for streaming responses
|
|
2339
2339
|
*/
|
|
2340
2340
|
type AgentStreamExecutor = (tenantId: string, assistantId: string, threadId: string, input: any) => AsyncIterable<any>;
|
|
2341
|
+
/**
|
|
2342
|
+
* Message-like structure for normalized message input
|
|
2343
|
+
* Supports both simple string content and structured message objects
|
|
2344
|
+
*/
|
|
2345
|
+
interface MessageLike {
|
|
2346
|
+
role: "human" | "system" | "assistant" | "tool";
|
|
2347
|
+
content: string;
|
|
2348
|
+
id?: string;
|
|
2349
|
+
metadata?: Record<string, unknown>;
|
|
2350
|
+
}
|
|
2341
2351
|
|
|
2342
2352
|
/**
|
|
2343
2353
|
* StoreLatticeManager
|
|
@@ -4239,6 +4249,7 @@ interface StateAndStore {
|
|
|
4239
4249
|
store?: BaseStore;
|
|
4240
4250
|
/** Optional assistant ID for per-assistant isolation in store */
|
|
4241
4251
|
assistantId?: string;
|
|
4252
|
+
assistant_id?: string;
|
|
4242
4253
|
threadId?: string;
|
|
4243
4254
|
tenantId?: string;
|
|
4244
4255
|
workspaceId?: string;
|
|
@@ -4957,8 +4968,9 @@ interface ThreadState {
|
|
|
4957
4968
|
}
|
|
4958
4969
|
interface QueueMessage {
|
|
4959
4970
|
input: {
|
|
4960
|
-
message
|
|
4971
|
+
message?: string;
|
|
4961
4972
|
id?: string;
|
|
4973
|
+
messages?: MessageLike[];
|
|
4962
4974
|
};
|
|
4963
4975
|
command?: CommandParams<any>;
|
|
4964
4976
|
custom_run_config?: any;
|
|
@@ -5074,6 +5086,11 @@ declare class Agent {
|
|
|
5074
5086
|
* Add message to queue
|
|
5075
5087
|
* All messages go to queue, processor auto-starts if not running
|
|
5076
5088
|
* STEER/Command messages are inserted at head of queue for immediate processing
|
|
5089
|
+
*
|
|
5090
|
+
* Supports both legacy single message format and new messages[] format:
|
|
5091
|
+
* - Legacy: input.message (single human message)
|
|
5092
|
+
* - New: input.messages[] (array of mixed human/system messages)
|
|
5093
|
+
* - When input.messages is provided, it takes precedence over input.message
|
|
5077
5094
|
*/
|
|
5078
5095
|
addMessage(queueMessage: QueueMessage, mode?: QueueMode): Promise<{
|
|
5079
5096
|
queued: boolean;
|
|
@@ -5318,4 +5335,9 @@ interface UnknownToolHandlerConfig {
|
|
|
5318
5335
|
*/
|
|
5319
5336
|
declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
|
|
5320
5337
|
|
|
5321
|
-
|
|
5338
|
+
interface SchedulerMiddlewareOptions {
|
|
5339
|
+
defaultMaxRetries?: number;
|
|
5340
|
+
}
|
|
5341
|
+
declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
|
|
5342
|
+
|
|
5343
|
+
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 CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type IsolatedLevel, 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, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type RunSandboxConfig, type RuntimeModelConfig, SandboxFilesystem, SandboxLatticeManager, type SandboxManagerProtocol, SandboxSkillStore, type SandboxSkillStoreOptions, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, 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, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, checkEmptyContent, clearEncryptionKeyCache, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, 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, 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
|
@@ -2267,9 +2267,9 @@ interface PendingMessage {
|
|
|
2267
2267
|
custom_run_config?: unknown;
|
|
2268
2268
|
}
|
|
2269
2269
|
interface PendingQueueMessageInput {
|
|
2270
|
-
message
|
|
2270
|
+
message?: string;
|
|
2271
2271
|
id?: string;
|
|
2272
|
-
messages?:
|
|
2272
|
+
messages?: MessageLike[];
|
|
2273
2273
|
[key: string]: unknown;
|
|
2274
2274
|
}
|
|
2275
2275
|
interface PendingQueueMessage {
|
|
@@ -2338,6 +2338,16 @@ type LangGraphStateChecker = (tenantId: string, assistantId: string, threadId: s
|
|
|
2338
2338
|
* Returns an async iterable for streaming responses
|
|
2339
2339
|
*/
|
|
2340
2340
|
type AgentStreamExecutor = (tenantId: string, assistantId: string, threadId: string, input: any) => AsyncIterable<any>;
|
|
2341
|
+
/**
|
|
2342
|
+
* Message-like structure for normalized message input
|
|
2343
|
+
* Supports both simple string content and structured message objects
|
|
2344
|
+
*/
|
|
2345
|
+
interface MessageLike {
|
|
2346
|
+
role: "human" | "system" | "assistant" | "tool";
|
|
2347
|
+
content: string;
|
|
2348
|
+
id?: string;
|
|
2349
|
+
metadata?: Record<string, unknown>;
|
|
2350
|
+
}
|
|
2341
2351
|
|
|
2342
2352
|
/**
|
|
2343
2353
|
* StoreLatticeManager
|
|
@@ -4239,6 +4249,7 @@ interface StateAndStore {
|
|
|
4239
4249
|
store?: BaseStore;
|
|
4240
4250
|
/** Optional assistant ID for per-assistant isolation in store */
|
|
4241
4251
|
assistantId?: string;
|
|
4252
|
+
assistant_id?: string;
|
|
4242
4253
|
threadId?: string;
|
|
4243
4254
|
tenantId?: string;
|
|
4244
4255
|
workspaceId?: string;
|
|
@@ -4957,8 +4968,9 @@ interface ThreadState {
|
|
|
4957
4968
|
}
|
|
4958
4969
|
interface QueueMessage {
|
|
4959
4970
|
input: {
|
|
4960
|
-
message
|
|
4971
|
+
message?: string;
|
|
4961
4972
|
id?: string;
|
|
4973
|
+
messages?: MessageLike[];
|
|
4962
4974
|
};
|
|
4963
4975
|
command?: CommandParams<any>;
|
|
4964
4976
|
custom_run_config?: any;
|
|
@@ -5074,6 +5086,11 @@ declare class Agent {
|
|
|
5074
5086
|
* Add message to queue
|
|
5075
5087
|
* All messages go to queue, processor auto-starts if not running
|
|
5076
5088
|
* STEER/Command messages are inserted at head of queue for immediate processing
|
|
5089
|
+
*
|
|
5090
|
+
* Supports both legacy single message format and new messages[] format:
|
|
5091
|
+
* - Legacy: input.message (single human message)
|
|
5092
|
+
* - New: input.messages[] (array of mixed human/system messages)
|
|
5093
|
+
* - When input.messages is provided, it takes precedence over input.message
|
|
5077
5094
|
*/
|
|
5078
5095
|
addMessage(queueMessage: QueueMessage, mode?: QueueMode): Promise<{
|
|
5079
5096
|
queued: boolean;
|
|
@@ -5318,4 +5335,9 @@ interface UnknownToolHandlerConfig {
|
|
|
5318
5335
|
*/
|
|
5319
5336
|
declare function createUnknownToolHandlerMiddleware(config?: UnknownToolHandlerConfig): AgentMiddleware;
|
|
5320
5337
|
|
|
5321
|
-
|
|
5338
|
+
interface SchedulerMiddlewareOptions {
|
|
5339
|
+
defaultMaxRetries?: number;
|
|
5340
|
+
}
|
|
5341
|
+
declare function createSchedulerMiddleware(options?: SchedulerMiddlewareOptions): AgentMiddleware;
|
|
5342
|
+
|
|
5343
|
+
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 CronFields, CustomMetricsClient, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, EMPTY_CONTENT_WARNING, type EditResult, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type FileData, type FileInfo, FileSystemSkillStore, type FileSystemSkillStoreOptions, FilesystemBackend, type GrepMatch, type IMessageQueueStore, type IMetricsServerClient, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryDatabaseConfigStore, InMemoryMailboxStore, InMemoryTaskListStore, InMemoryTenantStore, InMemoryThreadMessageQueueStore, InMemoryThreadStore, InMemoryUserStore, InMemoryUserTenantLinkStore, type IsolatedLevel, 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, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, type PendingMessage, PinoLoggerClient, PostgresDatabase, PrometheusClient, type QueryResult, type QueueLattice, QueueLatticeManager, QueueMode, type QueuePendingEvent, type RunSandboxConfig, type RuntimeModelConfig, SandboxFilesystem, SandboxLatticeManager, type SandboxManagerProtocol, SandboxSkillStore, type SandboxSkillStoreOptions, type ScheduleLattice, ScheduleLatticeManager, type SchedulerMiddlewareOptions, SemanticMetricsClient, type SkillLattice, SkillLatticeManager, 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, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, checkEmptyContent, clearEncryptionKeyCache, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, 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, 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 };
|