@axiom-lattice/core 2.1.14 → 2.1.15

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
@@ -5,7 +5,7 @@ import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/languag
5
5
  import { BaseLanguageModelInput } from '@langchain/core/language_models/base';
6
6
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
7
7
  import { ChatResult } from '@langchain/core/outputs';
8
- import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest } from '@axiom-lattice/protocols';
8
+ import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext } from '@axiom-lattice/protocols';
9
9
  import * as protocols from '@axiom-lattice/protocols';
10
10
  export { protocols as Protocols };
11
11
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
@@ -1501,6 +1501,134 @@ declare const registerVectorStoreLattice: (key: string, vectorStore: VectorStore
1501
1501
  declare const getVectorStoreLattice: (key: string) => VectorStoreLatticeInterface;
1502
1502
  declare const getVectorStoreClient: (key: string) => VectorStore;
1503
1503
 
1504
+ /**
1505
+ * LoggerLatticeManager
1506
+ *
1507
+ * Logger Lattice manager for registering and managing logger services
1508
+ */
1509
+
1510
+ /**
1511
+ * Logger Lattice interface
1512
+ */
1513
+ interface LoggerLattice extends LoggerLatticeProtocol {
1514
+ key: string;
1515
+ config: LoggerConfig;
1516
+ client: LoggerLatticeProtocol["client"];
1517
+ }
1518
+ /**
1519
+ * LoggerLatticeManager - Singleton logger Lattice manager
1520
+ * Responsible for registering and managing various logger service Lattices
1521
+ */
1522
+ declare class LoggerLatticeManager extends BaseLatticeManager<LoggerLattice> {
1523
+ private static _instance;
1524
+ /**
1525
+ * Get LoggerLatticeManager singleton instance
1526
+ */
1527
+ static getInstance(): LoggerLatticeManager;
1528
+ /**
1529
+ * Get Lattice type prefix
1530
+ */
1531
+ protected getLatticeType(): string;
1532
+ /**
1533
+ * Register logger Lattice
1534
+ * @param key Lattice key name
1535
+ * @param config Logger configuration
1536
+ * @param client Optional logger client. If not provided, will create based on config type.
1537
+ */
1538
+ registerLattice(key: string, config: LoggerConfig, client?: LoggerClient): void;
1539
+ /**
1540
+ * Get LoggerLattice
1541
+ * @param key Lattice key name
1542
+ */
1543
+ getLoggerLattice(key: string): LoggerLattice;
1544
+ /**
1545
+ * Get all Lattices
1546
+ */
1547
+ getAllLattices(): LoggerLattice[];
1548
+ /**
1549
+ * Check if Lattice exists
1550
+ * @param key Lattice key name
1551
+ */
1552
+ hasLattice(key: string): boolean;
1553
+ /**
1554
+ * Remove Lattice
1555
+ * @param key Lattice key name
1556
+ */
1557
+ removeLattice(key: string): boolean;
1558
+ /**
1559
+ * Clear all Lattices
1560
+ */
1561
+ clearLattices(): void;
1562
+ /**
1563
+ * Get Lattice count
1564
+ */
1565
+ getLatticeCount(): number;
1566
+ /**
1567
+ * Get Lattice key list
1568
+ */
1569
+ getLatticeKeys(): string[];
1570
+ }
1571
+ declare const loggerLatticeManager: LoggerLatticeManager;
1572
+ declare const registerLoggerLattice: (key: string, config: LoggerConfig, client?: LoggerClient) => void;
1573
+ declare const getLoggerLattice: (key: string) => LoggerLattice;
1574
+
1575
+ /**
1576
+ * PinoLoggerClient
1577
+ *
1578
+ * Pino-based logger client implementation
1579
+ */
1580
+
1581
+ /**
1582
+ * Pino-based logger client implementation
1583
+ * Supports custom file paths and pino configurations
1584
+ */
1585
+ declare class PinoLoggerClient implements LoggerClient {
1586
+ private pinoLogger;
1587
+ private config;
1588
+ private context;
1589
+ constructor(config: LoggerConfig);
1590
+ /**
1591
+ * Determine if file logging should be used
1592
+ */
1593
+ private shouldUseFileLogging;
1594
+ /**
1595
+ * Get file options from config
1596
+ */
1597
+ private getFileOptions;
1598
+ /**
1599
+ * Get contextual logger with merged context
1600
+ */
1601
+ private getContextualLogger;
1602
+ info(msg: string, obj?: object): void;
1603
+ error(msg: string, obj?: object | Error): void;
1604
+ warn(msg: string, obj?: object): void;
1605
+ debug(msg: string, obj?: object): void;
1606
+ updateContext(context: Partial<LoggerContext>): void;
1607
+ child(options: Partial<LoggerConfig>): LoggerClient;
1608
+ }
1609
+
1610
+ /**
1611
+ * ConsoleLoggerClient
1612
+ *
1613
+ * Simple console-based logger client implementation
1614
+ */
1615
+
1616
+ /**
1617
+ * Console-based logger client implementation
1618
+ */
1619
+ declare class ConsoleLoggerClient implements LoggerClient {
1620
+ private config;
1621
+ private context;
1622
+ constructor(config: LoggerConfig);
1623
+ private formatMessage;
1624
+ info(msg: string, obj?: object): void;
1625
+ error(msg: string, obj?: object | Error): void;
1626
+ warn(msg: string, obj?: object): void;
1627
+ debug(msg: string, obj?: object): void;
1628
+ updateContext(context: Partial<LoggerContext>): void;
1629
+ child(options: Partial<LoggerConfig>): LoggerClient;
1630
+ }
1631
+
1504
1632
  /**
1505
1633
  * Event bus service
1506
1634
  * Used for event publishing and subscription between internal system components
@@ -1558,4 +1686,4 @@ declare class AgentManager {
1558
1686
 
1559
1687
  declare const AGENT_TASK_EVENT = "agent:execute";
1560
1688
 
1561
- export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type ScheduleLattice, ScheduleLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getModelLattice, getNextCronTime, getQueueLattice, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, modelLatticeManager, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, scheduleLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateToolInput, vectorStoreLatticeManager };
1689
+ export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, ConsoleLoggerClient, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, type LoggerLattice, LoggerLatticeManager, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PinoLoggerClient, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type ScheduleLattice, ScheduleLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, loggerLatticeManager, modelLatticeManager, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, scheduleLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateToolInput, vectorStoreLatticeManager };
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import { BaseChatModel, BaseChatModelCallOptions } from '@langchain/core/languag
5
5
  import { BaseLanguageModelInput } from '@langchain/core/language_models/base';
6
6
  import { CallbackManagerForLLMRun } from '@langchain/core/callbacks/manager';
7
7
  import { ChatResult } from '@langchain/core/outputs';
8
- import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest } from '@axiom-lattice/protocols';
8
+ import { LLMConfig, ToolConfig, ToolExecutor, AgentConfig, GraphBuildOptions, MessageChunk, QueueLatticeProtocol, QueueConfig, QueueClient, QueueResult, ScheduleLatticeProtocol, ScheduleConfig, ScheduleClient, ScheduleStorage, TaskHandler, ScheduleOnceOptions, ScheduleCronOptions, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, ThreadStore, AssistantStore, Thread, CreateThreadRequest, Assistant, CreateAssistantRequest, LoggerLatticeProtocol, LoggerConfig, LoggerClient, LoggerContext } from '@axiom-lattice/protocols';
9
9
  import * as protocols from '@axiom-lattice/protocols';
10
10
  export { protocols as Protocols };
11
11
  export { AgentConfig, AgentType, GraphBuildOptions, MemoryType } from '@axiom-lattice/protocols';
@@ -1501,6 +1501,134 @@ declare const registerVectorStoreLattice: (key: string, vectorStore: VectorStore
1501
1501
  declare const getVectorStoreLattice: (key: string) => VectorStoreLatticeInterface;
1502
1502
  declare const getVectorStoreClient: (key: string) => VectorStore;
1503
1503
 
1504
+ /**
1505
+ * LoggerLatticeManager
1506
+ *
1507
+ * Logger Lattice manager for registering and managing logger services
1508
+ */
1509
+
1510
+ /**
1511
+ * Logger Lattice interface
1512
+ */
1513
+ interface LoggerLattice extends LoggerLatticeProtocol {
1514
+ key: string;
1515
+ config: LoggerConfig;
1516
+ client: LoggerLatticeProtocol["client"];
1517
+ }
1518
+ /**
1519
+ * LoggerLatticeManager - Singleton logger Lattice manager
1520
+ * Responsible for registering and managing various logger service Lattices
1521
+ */
1522
+ declare class LoggerLatticeManager extends BaseLatticeManager<LoggerLattice> {
1523
+ private static _instance;
1524
+ /**
1525
+ * Get LoggerLatticeManager singleton instance
1526
+ */
1527
+ static getInstance(): LoggerLatticeManager;
1528
+ /**
1529
+ * Get Lattice type prefix
1530
+ */
1531
+ protected getLatticeType(): string;
1532
+ /**
1533
+ * Register logger Lattice
1534
+ * @param key Lattice key name
1535
+ * @param config Logger configuration
1536
+ * @param client Optional logger client. If not provided, will create based on config type.
1537
+ */
1538
+ registerLattice(key: string, config: LoggerConfig, client?: LoggerClient): void;
1539
+ /**
1540
+ * Get LoggerLattice
1541
+ * @param key Lattice key name
1542
+ */
1543
+ getLoggerLattice(key: string): LoggerLattice;
1544
+ /**
1545
+ * Get all Lattices
1546
+ */
1547
+ getAllLattices(): LoggerLattice[];
1548
+ /**
1549
+ * Check if Lattice exists
1550
+ * @param key Lattice key name
1551
+ */
1552
+ hasLattice(key: string): boolean;
1553
+ /**
1554
+ * Remove Lattice
1555
+ * @param key Lattice key name
1556
+ */
1557
+ removeLattice(key: string): boolean;
1558
+ /**
1559
+ * Clear all Lattices
1560
+ */
1561
+ clearLattices(): void;
1562
+ /**
1563
+ * Get Lattice count
1564
+ */
1565
+ getLatticeCount(): number;
1566
+ /**
1567
+ * Get Lattice key list
1568
+ */
1569
+ getLatticeKeys(): string[];
1570
+ }
1571
+ declare const loggerLatticeManager: LoggerLatticeManager;
1572
+ declare const registerLoggerLattice: (key: string, config: LoggerConfig, client?: LoggerClient) => void;
1573
+ declare const getLoggerLattice: (key: string) => LoggerLattice;
1574
+
1575
+ /**
1576
+ * PinoLoggerClient
1577
+ *
1578
+ * Pino-based logger client implementation
1579
+ */
1580
+
1581
+ /**
1582
+ * Pino-based logger client implementation
1583
+ * Supports custom file paths and pino configurations
1584
+ */
1585
+ declare class PinoLoggerClient implements LoggerClient {
1586
+ private pinoLogger;
1587
+ private config;
1588
+ private context;
1589
+ constructor(config: LoggerConfig);
1590
+ /**
1591
+ * Determine if file logging should be used
1592
+ */
1593
+ private shouldUseFileLogging;
1594
+ /**
1595
+ * Get file options from config
1596
+ */
1597
+ private getFileOptions;
1598
+ /**
1599
+ * Get contextual logger with merged context
1600
+ */
1601
+ private getContextualLogger;
1602
+ info(msg: string, obj?: object): void;
1603
+ error(msg: string, obj?: object | Error): void;
1604
+ warn(msg: string, obj?: object): void;
1605
+ debug(msg: string, obj?: object): void;
1606
+ updateContext(context: Partial<LoggerContext>): void;
1607
+ child(options: Partial<LoggerConfig>): LoggerClient;
1608
+ }
1609
+
1610
+ /**
1611
+ * ConsoleLoggerClient
1612
+ *
1613
+ * Simple console-based logger client implementation
1614
+ */
1615
+
1616
+ /**
1617
+ * Console-based logger client implementation
1618
+ */
1619
+ declare class ConsoleLoggerClient implements LoggerClient {
1620
+ private config;
1621
+ private context;
1622
+ constructor(config: LoggerConfig);
1623
+ private formatMessage;
1624
+ info(msg: string, obj?: object): void;
1625
+ error(msg: string, obj?: object | Error): void;
1626
+ warn(msg: string, obj?: object): void;
1627
+ debug(msg: string, obj?: object): void;
1628
+ updateContext(context: Partial<LoggerContext>): void;
1629
+ child(options: Partial<LoggerConfig>): LoggerClient;
1630
+ }
1631
+
1504
1632
  /**
1505
1633
  * Event bus service
1506
1634
  * Used for event publishing and subscription between internal system components
@@ -1558,4 +1686,4 @@ declare class AgentManager {
1558
1686
 
1559
1687
  declare const AGENT_TASK_EVENT = "agent:execute";
1560
1688
 
1561
- export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type ScheduleLattice, ScheduleLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getModelLattice, getNextCronTime, getQueueLattice, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, modelLatticeManager, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, scheduleLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateToolInput, vectorStoreLatticeManager };
1689
+ export { AGENT_TASK_EVENT, type AgentClient, type AgentLattice, AgentLatticeManager, AgentManager, type BufferStats, type Chunk, ChunkBuffer, ChunkBufferLatticeManager, type ColumnInfo, ConsoleLoggerClient, type CronFields, type DatabaseConfig, type DatabaseType, DefaultScheduleClient, type EmbeddingsLatticeInterface, EmbeddingsLatticeManager, type ISqlDatabase, InMemoryAssistantStore, InMemoryChunkBuffer, InMemoryThreadStore, type LoggerLattice, LoggerLatticeManager, MemoryLatticeManager, MemoryQueueClient, MemoryScheduleStorage, type ModelConfig, type ModelLatticeInterface, ModelLatticeManager, PinoLoggerClient, PostgresDatabase, type QueryResult, type QueueLattice, QueueLatticeManager, type ScheduleLattice, ScheduleLatticeManager, SqlDatabaseManager, type StoreLattice, StoreLatticeManager, type StoreType, type StoreTypeMap, type TableInfo, type TableSchema, type ThreadBuffer, type ThreadBufferConfig, ThreadStatus, type ToolDefinition, type ToolLattice, ToolLatticeManager, type VectorStoreLatticeInterface, VectorStoreLatticeManager, agentLatticeManager, describeCronExpression, embeddingsLatticeManager, eventBus, eventBus as eventBusDefault, getAgentClient, getAgentConfig, getAgentLattice, getAllAgentConfigs, getAllToolDefinitions, getCheckpointSaver, getChunkBuffer, getEmbeddingsClient, getEmbeddingsLattice, getLoggerLattice, getModelLattice, getNextCronTime, getQueueLattice, getScheduleLattice, getStoreLattice, getToolClient, getToolDefinition, getToolLattice, getVectorStoreClient, getVectorStoreLattice, hasChunkBuffer, isValidCronExpression, loggerLatticeManager, modelLatticeManager, parseCronExpression, queueLatticeManager, registerAgentLattice, registerAgentLattices, registerCheckpointSaver, registerChunkBuffer, registerEmbeddingsLattice, registerLoggerLattice, registerModelLattice, registerQueueLattice, registerScheduleLattice, registerStoreLattice, registerToolLattice, registerVectorStoreLattice, scheduleLatticeManager, sqlDatabaseManager, storeLatticeManager, toolLatticeManager, validateAgentInput, validateToolInput, vectorStoreLatticeManager };