@axiom-lattice/core 2.1.39 → 2.1.41
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 +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +2697 -2623
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2672 -2599
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1410,7 +1410,7 @@ interface AgentBuildParams {
|
|
|
1410
1410
|
}>;
|
|
1411
1411
|
prompt: string;
|
|
1412
1412
|
stateSchema?: z$1.ZodObject<any, any, any, any, any>;
|
|
1413
|
-
tenantId
|
|
1413
|
+
tenantId?: string;
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
1416
|
/**
|
|
@@ -4928,6 +4928,7 @@ interface QueueMessage {
|
|
|
4928
4928
|
message: string;
|
|
4929
4929
|
};
|
|
4930
4930
|
command?: CommandParams<any>;
|
|
4931
|
+
custom_run_config?: any;
|
|
4931
4932
|
}
|
|
4932
4933
|
interface ThreadStatusChangedEvent {
|
|
4933
4934
|
type: "thread:status:changed";
|
|
@@ -5004,6 +5005,7 @@ declare class Agent {
|
|
|
5004
5005
|
project_id: string | undefined;
|
|
5005
5006
|
custom_run_config: any;
|
|
5006
5007
|
queueMode: ThreadQueueConfig;
|
|
5008
|
+
private isWaitingForQueueEnd;
|
|
5007
5009
|
constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
|
|
5008
5010
|
/**
|
|
5009
5011
|
* Initialize with message queue store
|
|
@@ -5013,7 +5015,7 @@ declare class Agent {
|
|
|
5013
5015
|
chunkStream(message_id: string, known_content?: string): {
|
|
5014
5016
|
[Symbol.asyncIterator]: () => AsyncGenerator<MessageChunk, void, unknown>;
|
|
5015
5017
|
};
|
|
5016
|
-
getLatticeClientAndRuntimeConfig(): Promise<{
|
|
5018
|
+
getLatticeClientAndRuntimeConfig(custom_run_config?: any): Promise<{
|
|
5017
5019
|
runnable_agent: AgentClient;
|
|
5018
5020
|
runConfig: any;
|
|
5019
5021
|
}>;
|
|
@@ -5023,6 +5025,7 @@ declare class Agent {
|
|
|
5023
5025
|
private agentExecutor;
|
|
5024
5026
|
getPendingMessages(): Promise<PendingMessage[]>;
|
|
5025
5027
|
private agentStreamExecutor;
|
|
5028
|
+
private tryToCompleteThread;
|
|
5026
5029
|
private waitingForQueueEnd;
|
|
5027
5030
|
private getQueueStore;
|
|
5028
5031
|
private getDefaultQueueConfig;
|
|
@@ -5191,4 +5194,25 @@ declare function clearEncryptionKeyCache(): void;
|
|
|
5191
5194
|
*/
|
|
5192
5195
|
declare function createWidgetMiddleware(): AgentMiddleware;
|
|
5193
5196
|
|
|
5194
|
-
|
|
5197
|
+
/**
|
|
5198
|
+
* Runtime model configuration interface
|
|
5199
|
+
*/
|
|
5200
|
+
interface RuntimeModelConfig {
|
|
5201
|
+
modelKey: string;
|
|
5202
|
+
temperature?: number;
|
|
5203
|
+
maxTokens?: number;
|
|
5204
|
+
topP?: number;
|
|
5205
|
+
frequencyPenalty?: number;
|
|
5206
|
+
presencePenalty?: number;
|
|
5207
|
+
}
|
|
5208
|
+
/**
|
|
5209
|
+
* Create middleware that dynamically selects model based on runConfig.modelConfig
|
|
5210
|
+
*
|
|
5211
|
+
* This middleware intercepts model calls and replaces the model if a modelConfig
|
|
5212
|
+
* is specified in the runConfig. This allows per-message model selection
|
|
5213
|
+
* without modifying the agent instance. If no modelConfig is provided, uses
|
|
5214
|
+
* the Agent's default model.
|
|
5215
|
+
*/
|
|
5216
|
+
declare function createModelSelectorMiddleware(): AgentMiddleware;
|
|
5217
|
+
|
|
5218
|
+
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, 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 VectorStoreLatticeInterface, VectorStoreLatticeManager, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, checkEmptyContent, clearEncryptionKeyCache, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createTeamMiddleware, createTeammateTools, 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
|
@@ -1410,7 +1410,7 @@ interface AgentBuildParams {
|
|
|
1410
1410
|
}>;
|
|
1411
1411
|
prompt: string;
|
|
1412
1412
|
stateSchema?: z$1.ZodObject<any, any, any, any, any>;
|
|
1413
|
-
tenantId
|
|
1413
|
+
tenantId?: string;
|
|
1414
1414
|
}
|
|
1415
1415
|
|
|
1416
1416
|
/**
|
|
@@ -4928,6 +4928,7 @@ interface QueueMessage {
|
|
|
4928
4928
|
message: string;
|
|
4929
4929
|
};
|
|
4930
4930
|
command?: CommandParams<any>;
|
|
4931
|
+
custom_run_config?: any;
|
|
4931
4932
|
}
|
|
4932
4933
|
interface ThreadStatusChangedEvent {
|
|
4933
4934
|
type: "thread:status:changed";
|
|
@@ -5004,6 +5005,7 @@ declare class Agent {
|
|
|
5004
5005
|
project_id: string | undefined;
|
|
5005
5006
|
custom_run_config: any;
|
|
5006
5007
|
queueMode: ThreadQueueConfig;
|
|
5008
|
+
private isWaitingForQueueEnd;
|
|
5007
5009
|
constructor({ assistant_id, thread_id, tenant_id, workspace_id, project_id, custom_run_config, }: AgentThreadInterface);
|
|
5008
5010
|
/**
|
|
5009
5011
|
* Initialize with message queue store
|
|
@@ -5013,7 +5015,7 @@ declare class Agent {
|
|
|
5013
5015
|
chunkStream(message_id: string, known_content?: string): {
|
|
5014
5016
|
[Symbol.asyncIterator]: () => AsyncGenerator<MessageChunk, void, unknown>;
|
|
5015
5017
|
};
|
|
5016
|
-
getLatticeClientAndRuntimeConfig(): Promise<{
|
|
5018
|
+
getLatticeClientAndRuntimeConfig(custom_run_config?: any): Promise<{
|
|
5017
5019
|
runnable_agent: AgentClient;
|
|
5018
5020
|
runConfig: any;
|
|
5019
5021
|
}>;
|
|
@@ -5023,6 +5025,7 @@ declare class Agent {
|
|
|
5023
5025
|
private agentExecutor;
|
|
5024
5026
|
getPendingMessages(): Promise<PendingMessage[]>;
|
|
5025
5027
|
private agentStreamExecutor;
|
|
5028
|
+
private tryToCompleteThread;
|
|
5026
5029
|
private waitingForQueueEnd;
|
|
5027
5030
|
private getQueueStore;
|
|
5028
5031
|
private getDefaultQueueConfig;
|
|
@@ -5191,4 +5194,25 @@ declare function clearEncryptionKeyCache(): void;
|
|
|
5191
5194
|
*/
|
|
5192
5195
|
declare function createWidgetMiddleware(): AgentMiddleware;
|
|
5193
5196
|
|
|
5194
|
-
|
|
5197
|
+
/**
|
|
5198
|
+
* Runtime model configuration interface
|
|
5199
|
+
*/
|
|
5200
|
+
interface RuntimeModelConfig {
|
|
5201
|
+
modelKey: string;
|
|
5202
|
+
temperature?: number;
|
|
5203
|
+
maxTokens?: number;
|
|
5204
|
+
topP?: number;
|
|
5205
|
+
frequencyPenalty?: number;
|
|
5206
|
+
presencePenalty?: number;
|
|
5207
|
+
}
|
|
5208
|
+
/**
|
|
5209
|
+
* Create middleware that dynamically selects model based on runConfig.modelConfig
|
|
5210
|
+
*
|
|
5211
|
+
* This middleware intercepts model calls and replaces the model if a modelConfig
|
|
5212
|
+
* is specified in the runConfig. This allows per-message model selection
|
|
5213
|
+
* without modifying the agent instance. If no modelConfig is provided, uses
|
|
5214
|
+
* the Agent's default model.
|
|
5215
|
+
*/
|
|
5216
|
+
declare function createModelSelectorMiddleware(): AgentMiddleware;
|
|
5217
|
+
|
|
5218
|
+
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, 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 VectorStoreLatticeInterface, VectorStoreLatticeManager, type WriteResult, agentInstanceManager, agentLatticeManager, buildGrepResultsDict, checkEmptyContent, clearEncryptionKeyCache, createAgentTeam, createExecuteSqlQueryTool, createFileData, createInfoSqlTool, createListMetricsDataSourcesTool, createListMetricsServersTool, createListTablesSqlTool, createModelSelectorMiddleware, createQueryCheckerSqlTool, createQueryMetricDefinitionTool, createQueryMetricsListTool, createQuerySemanticMetricDataTool, createQuerySqlTool, createQueryTableDefinitionTool, createQueryTablesListTool, createTeamMiddleware, createTeammateTools, 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 };
|