@snap-agent/core 0.1.3 → 0.1.5

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.
Files changed (35) hide show
  1. package/dist/chunk-4NN3ADDP.mjs +0 -0
  2. package/dist/chunk-52OS4FTG.mjs +382 -0
  3. package/dist/chunk-5BAE6S5E.js +382 -0
  4. package/dist/chunk-BSSVNLSO.mjs +157 -0
  5. package/dist/chunk-DKNHIS7Z.js +2227 -0
  6. package/dist/chunk-DQRG2GHR.js +157 -0
  7. package/dist/chunk-GHRDUPHS.js +1 -0
  8. package/dist/chunk-JQK3HEJ5.mjs +268 -0
  9. package/dist/chunk-JRIKISMX.js +268 -0
  10. package/dist/dist-GSDAIZQP.js +1825 -0
  11. package/dist/dist-HTV3MRC3.js +3216 -0
  12. package/dist/{index-m2vDW79n.d.mts → index-Ek8b39d1.d.mts} +1 -173
  13. package/dist/{index-m2vDW79n.d.ts → index-Ek8b39d1.d.ts} +1 -173
  14. package/dist/index.d.mts +17 -8
  15. package/dist/index.d.ts +17 -8
  16. package/dist/index.js +1255 -9372
  17. package/dist/index.mjs +27 -9
  18. package/dist/storage/MemoryStorage.d.mts +46 -0
  19. package/dist/storage/MemoryStorage.d.ts +46 -0
  20. package/dist/storage/MemoryStorage.js +6 -0
  21. package/dist/storage/MemoryStorage.mjs +6 -0
  22. package/dist/storage/MongoDBStorage.d.mts +44 -0
  23. package/dist/storage/MongoDBStorage.d.ts +44 -0
  24. package/dist/storage/MongoDBStorage.js +6 -0
  25. package/dist/storage/MongoDBStorage.mjs +6 -0
  26. package/dist/storage/UpstashStorage.d.mts +91 -0
  27. package/dist/storage/UpstashStorage.d.ts +91 -0
  28. package/dist/storage/UpstashStorage.js +6 -0
  29. package/dist/storage/UpstashStorage.mjs +6 -0
  30. package/dist/storage/index.d.mts +4 -1
  31. package/dist/storage/index.d.ts +4 -1
  32. package/dist/storage/index.js +11 -827
  33. package/dist/storage/index.mjs +8 -3
  34. package/package.json +18 -3
  35. package/dist/chunk-FS7G3ID4.mjs +0 -803
@@ -563,176 +563,4 @@ declare class InvalidConfigError extends AgentSDKError {
563
563
  constructor(message: string);
564
564
  }
565
565
 
566
- interface MongoDBStorageConfig {
567
- uri: string;
568
- dbName?: string;
569
- agentsCollection?: string;
570
- threadsCollection?: string;
571
- }
572
- /**
573
- * MongoDB Storage Adapter
574
- * Provides persistent storage for agents and threads using MongoDB
575
- */
576
- declare class MongoDBStorage implements StorageAdapter {
577
- private client;
578
- private db;
579
- private config;
580
- constructor(config: MongoDBStorageConfig | string);
581
- private ensureConnection;
582
- disconnect(): Promise<void>;
583
- createAgent(config: AgentConfig): Promise<string>;
584
- getAgent(agentId: string): Promise<AgentData | null>;
585
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
586
- deleteAgent(agentId: string): Promise<void>;
587
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
588
- createThread(config: ThreadConfig): Promise<string>;
589
- getThread(threadId: string): Promise<ThreadData | null>;
590
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
591
- deleteThread(threadId: string): Promise<void>;
592
- listThreads(filters: {
593
- userId?: string;
594
- agentId?: string;
595
- organizationId?: string;
596
- }): Promise<ThreadData[]>;
597
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
598
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
599
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
600
- role: string;
601
- content: string;
602
- }>>;
603
- private agentDocToData;
604
- private threadDocToData;
605
- }
606
-
607
- /**
608
- * In-Memory Storage Adapter
609
- * Provides temporary storage for agents and threads (useful for testing and development)
610
- */
611
- declare class MemoryStorage implements StorageAdapter {
612
- private agents;
613
- private threads;
614
- private idCounter;
615
- private generateId;
616
- createAgent(config: AgentConfig): Promise<string>;
617
- getAgent(agentId: string): Promise<AgentData | null>;
618
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
619
- deleteAgent(agentId: string): Promise<void>;
620
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
621
- createThread(config: ThreadConfig): Promise<string>;
622
- getThread(threadId: string): Promise<ThreadData | null>;
623
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
624
- deleteThread(threadId: string): Promise<void>;
625
- listThreads(filters: {
626
- userId?: string;
627
- agentId?: string;
628
- organizationId?: string;
629
- }): Promise<ThreadData[]>;
630
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
631
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
632
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
633
- role: string;
634
- content: string;
635
- }>>;
636
- /**
637
- * Clear all stored data
638
- */
639
- clear(): void;
640
- /**
641
- * Get statistics about stored data
642
- */
643
- getStats(): {
644
- agents: number;
645
- threads: number;
646
- messages: number;
647
- };
648
- }
649
-
650
- /**
651
- * Upstash Redis configuration
652
- */
653
- interface UpstashStorageConfig {
654
- /**
655
- * Upstash Redis REST URL
656
- * @example "https://your-redis.upstash.io"
657
- */
658
- url: string;
659
- /**
660
- * Upstash Redis REST token
661
- */
662
- token: string;
663
- /**
664
- * Optional key prefix for multi-tenancy
665
- * @default "snap-agent"
666
- */
667
- prefix?: string;
668
- }
669
- /**
670
- * Upstash Redis Storage Adapter
671
- *
672
- * Edge-compatible persistent storage using Upstash Redis REST API.
673
- * Works with Cloudflare Workers, Vercel Edge, Deno Deploy, and any WinterCG runtime.
674
- *
675
- * @example
676
- * ```typescript
677
- * import { UpstashStorage } from '@snap-agent/core/storage';
678
- *
679
- * const storage = new UpstashStorage({
680
- * url: process.env.UPSTASH_REDIS_REST_URL!,
681
- * token: process.env.UPSTASH_REDIS_REST_TOKEN!,
682
- * });
683
- *
684
- * const client = createClient({
685
- * storage,
686
- * providers: { openai: { apiKey: process.env.OPENAI_API_KEY! } },
687
- * });
688
- * ```
689
- */
690
- declare class UpstashStorage implements StorageAdapter {
691
- private url;
692
- private token;
693
- private prefix;
694
- constructor(config: UpstashStorageConfig);
695
- private command;
696
- private pipeline;
697
- private key;
698
- private generateId;
699
- createAgent(config: AgentConfig): Promise<string>;
700
- getAgent(agentId: string): Promise<AgentData | null>;
701
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
702
- deleteAgent(agentId: string): Promise<void>;
703
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
704
- createThread(config: ThreadConfig): Promise<string>;
705
- getThread(threadId: string): Promise<ThreadData | null>;
706
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
707
- deleteThread(threadId: string): Promise<void>;
708
- listThreads(filters: {
709
- userId?: string;
710
- agentId?: string;
711
- organizationId?: string;
712
- }): Promise<ThreadData[]>;
713
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
714
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
715
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
716
- role: string;
717
- content: string;
718
- }>>;
719
- private parseStoredAgent;
720
- private parseStoredThread;
721
- /**
722
- * Test connection to Upstash Redis
723
- */
724
- ping(): Promise<boolean>;
725
- /**
726
- * Clear all data with this prefix (use with caution!)
727
- */
728
- clear(): Promise<void>;
729
- /**
730
- * Get storage statistics
731
- */
732
- getStats(): Promise<{
733
- agents: number;
734
- threads: number;
735
- }>;
736
- }
737
-
738
- export { type AgentData as A, type BulkOperation as B, type ClientConfig as C, type DataTransform as D, type TokenMetrics as E, type RequestTrackingData as F, type ResponseTrackingData as G, type ErrorTrackingData as H, type IngestOptions as I, type PluginRegistryInterface as J, AgentSDKError as K, AgentNotFoundError as L, type MessageRole as M, ThreadNotFoundError as N, ProviderNotFoundError as O, type ProviderConfig as P, InvalidConfigError as Q, type RAGDocument as R, type StoredPluginConfig as S, type ThreadData as T, type URLSource as U, MongoDBStorage as V, MemoryStorage as W, UpstashStorage as X, type MongoDBStorageConfig as Y, type UpstashStorageConfig as Z, type ProviderType as a, type Plugin as b, type StorageAdapter as c, type AgentConfig as d, type AgentFile as e, type IngestResult as f, type BulkResult as g, type URLIngestResult as h, type ThreadConfig as i, type MessageAttachment as j, type MessageData as k, type ChatRequest as l, type ChatResponse as m, type StreamCallbacks as n, type RAGPlugin as o, type ToolPlugin as p, type MiddlewarePlugin as q, type AnalyticsPlugin as r, type RAGContext as s, type RAGConfig as t, type BasePlugin as u, type URLSourceAuth as v, type IngestionSchedule as w, type Tool as x, type PerformanceTimings as y, type RAGMetrics as z };
566
+ export { type AgentConfig as A, type BulkOperation as B, type ClientConfig as C, type DataTransform as D, type TokenMetrics as E, type RequestTrackingData as F, type ResponseTrackingData as G, type ErrorTrackingData as H, type IngestOptions as I, type PluginRegistryInterface as J, AgentSDKError as K, AgentNotFoundError as L, type MessageRole as M, ThreadNotFoundError as N, ProviderNotFoundError as O, type ProviderConfig as P, InvalidConfigError as Q, type RAGDocument as R, type StorageAdapter as S, type ThreadConfig as T, type URLSource as U, type AgentData as a, type ThreadData as b, type MessageAttachment as c, type MessageData as d, type ProviderType as e, type Plugin as f, type StoredPluginConfig as g, type AgentFile as h, type IngestResult as i, type BulkResult as j, type URLIngestResult as k, type ChatRequest as l, type ChatResponse as m, type StreamCallbacks as n, type RAGPlugin as o, type ToolPlugin as p, type MiddlewarePlugin as q, type AnalyticsPlugin as r, type RAGContext as s, type RAGConfig as t, type BasePlugin as u, type URLSourceAuth as v, type IngestionSchedule as w, type Tool as x, type PerformanceTimings as y, type RAGMetrics as z };
@@ -563,176 +563,4 @@ declare class InvalidConfigError extends AgentSDKError {
563
563
  constructor(message: string);
564
564
  }
565
565
 
566
- interface MongoDBStorageConfig {
567
- uri: string;
568
- dbName?: string;
569
- agentsCollection?: string;
570
- threadsCollection?: string;
571
- }
572
- /**
573
- * MongoDB Storage Adapter
574
- * Provides persistent storage for agents and threads using MongoDB
575
- */
576
- declare class MongoDBStorage implements StorageAdapter {
577
- private client;
578
- private db;
579
- private config;
580
- constructor(config: MongoDBStorageConfig | string);
581
- private ensureConnection;
582
- disconnect(): Promise<void>;
583
- createAgent(config: AgentConfig): Promise<string>;
584
- getAgent(agentId: string): Promise<AgentData | null>;
585
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
586
- deleteAgent(agentId: string): Promise<void>;
587
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
588
- createThread(config: ThreadConfig): Promise<string>;
589
- getThread(threadId: string): Promise<ThreadData | null>;
590
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
591
- deleteThread(threadId: string): Promise<void>;
592
- listThreads(filters: {
593
- userId?: string;
594
- agentId?: string;
595
- organizationId?: string;
596
- }): Promise<ThreadData[]>;
597
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
598
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
599
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
600
- role: string;
601
- content: string;
602
- }>>;
603
- private agentDocToData;
604
- private threadDocToData;
605
- }
606
-
607
- /**
608
- * In-Memory Storage Adapter
609
- * Provides temporary storage for agents and threads (useful for testing and development)
610
- */
611
- declare class MemoryStorage implements StorageAdapter {
612
- private agents;
613
- private threads;
614
- private idCounter;
615
- private generateId;
616
- createAgent(config: AgentConfig): Promise<string>;
617
- getAgent(agentId: string): Promise<AgentData | null>;
618
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
619
- deleteAgent(agentId: string): Promise<void>;
620
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
621
- createThread(config: ThreadConfig): Promise<string>;
622
- getThread(threadId: string): Promise<ThreadData | null>;
623
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
624
- deleteThread(threadId: string): Promise<void>;
625
- listThreads(filters: {
626
- userId?: string;
627
- agentId?: string;
628
- organizationId?: string;
629
- }): Promise<ThreadData[]>;
630
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
631
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
632
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
633
- role: string;
634
- content: string;
635
- }>>;
636
- /**
637
- * Clear all stored data
638
- */
639
- clear(): void;
640
- /**
641
- * Get statistics about stored data
642
- */
643
- getStats(): {
644
- agents: number;
645
- threads: number;
646
- messages: number;
647
- };
648
- }
649
-
650
- /**
651
- * Upstash Redis configuration
652
- */
653
- interface UpstashStorageConfig {
654
- /**
655
- * Upstash Redis REST URL
656
- * @example "https://your-redis.upstash.io"
657
- */
658
- url: string;
659
- /**
660
- * Upstash Redis REST token
661
- */
662
- token: string;
663
- /**
664
- * Optional key prefix for multi-tenancy
665
- * @default "snap-agent"
666
- */
667
- prefix?: string;
668
- }
669
- /**
670
- * Upstash Redis Storage Adapter
671
- *
672
- * Edge-compatible persistent storage using Upstash Redis REST API.
673
- * Works with Cloudflare Workers, Vercel Edge, Deno Deploy, and any WinterCG runtime.
674
- *
675
- * @example
676
- * ```typescript
677
- * import { UpstashStorage } from '@snap-agent/core/storage';
678
- *
679
- * const storage = new UpstashStorage({
680
- * url: process.env.UPSTASH_REDIS_REST_URL!,
681
- * token: process.env.UPSTASH_REDIS_REST_TOKEN!,
682
- * });
683
- *
684
- * const client = createClient({
685
- * storage,
686
- * providers: { openai: { apiKey: process.env.OPENAI_API_KEY! } },
687
- * });
688
- * ```
689
- */
690
- declare class UpstashStorage implements StorageAdapter {
691
- private url;
692
- private token;
693
- private prefix;
694
- constructor(config: UpstashStorageConfig);
695
- private command;
696
- private pipeline;
697
- private key;
698
- private generateId;
699
- createAgent(config: AgentConfig): Promise<string>;
700
- getAgent(agentId: string): Promise<AgentData | null>;
701
- updateAgent(agentId: string, updates: Partial<AgentConfig>): Promise<void>;
702
- deleteAgent(agentId: string): Promise<void>;
703
- listAgents(userId: string, organizationId?: string): Promise<AgentData[]>;
704
- createThread(config: ThreadConfig): Promise<string>;
705
- getThread(threadId: string): Promise<ThreadData | null>;
706
- updateThread(threadId: string, updates: Partial<ThreadConfig>): Promise<void>;
707
- deleteThread(threadId: string): Promise<void>;
708
- listThreads(filters: {
709
- userId?: string;
710
- agentId?: string;
711
- organizationId?: string;
712
- }): Promise<ThreadData[]>;
713
- addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[]): Promise<string>;
714
- getMessages(threadId: string, limit?: number): Promise<MessageData[]>;
715
- getConversationContext(threadId: string, maxMessages?: number): Promise<Array<{
716
- role: string;
717
- content: string;
718
- }>>;
719
- private parseStoredAgent;
720
- private parseStoredThread;
721
- /**
722
- * Test connection to Upstash Redis
723
- */
724
- ping(): Promise<boolean>;
725
- /**
726
- * Clear all data with this prefix (use with caution!)
727
- */
728
- clear(): Promise<void>;
729
- /**
730
- * Get storage statistics
731
- */
732
- getStats(): Promise<{
733
- agents: number;
734
- threads: number;
735
- }>;
736
- }
737
-
738
- export { type AgentData as A, type BulkOperation as B, type ClientConfig as C, type DataTransform as D, type TokenMetrics as E, type RequestTrackingData as F, type ResponseTrackingData as G, type ErrorTrackingData as H, type IngestOptions as I, type PluginRegistryInterface as J, AgentSDKError as K, AgentNotFoundError as L, type MessageRole as M, ThreadNotFoundError as N, ProviderNotFoundError as O, type ProviderConfig as P, InvalidConfigError as Q, type RAGDocument as R, type StoredPluginConfig as S, type ThreadData as T, type URLSource as U, MongoDBStorage as V, MemoryStorage as W, UpstashStorage as X, type MongoDBStorageConfig as Y, type UpstashStorageConfig as Z, type ProviderType as a, type Plugin as b, type StorageAdapter as c, type AgentConfig as d, type AgentFile as e, type IngestResult as f, type BulkResult as g, type URLIngestResult as h, type ThreadConfig as i, type MessageAttachment as j, type MessageData as k, type ChatRequest as l, type ChatResponse as m, type StreamCallbacks as n, type RAGPlugin as o, type ToolPlugin as p, type MiddlewarePlugin as q, type AnalyticsPlugin as r, type RAGContext as s, type RAGConfig as t, type BasePlugin as u, type URLSourceAuth as v, type IngestionSchedule as w, type Tool as x, type PerformanceTimings as y, type RAGMetrics as z };
566
+ export { type AgentConfig as A, type BulkOperation as B, type ClientConfig as C, type DataTransform as D, type TokenMetrics as E, type RequestTrackingData as F, type ResponseTrackingData as G, type ErrorTrackingData as H, type IngestOptions as I, type PluginRegistryInterface as J, AgentSDKError as K, AgentNotFoundError as L, type MessageRole as M, ThreadNotFoundError as N, ProviderNotFoundError as O, type ProviderConfig as P, InvalidConfigError as Q, type RAGDocument as R, type StorageAdapter as S, type ThreadConfig as T, type URLSource as U, type AgentData as a, type ThreadData as b, type MessageAttachment as c, type MessageData as d, type ProviderType as e, type Plugin as f, type StoredPluginConfig as g, type AgentFile as h, type IngestResult as i, type BulkResult as j, type URLIngestResult as k, type ChatRequest as l, type ChatResponse as m, type StreamCallbacks as n, type RAGPlugin as o, type ToolPlugin as p, type MiddlewarePlugin as q, type AnalyticsPlugin as r, type RAGContext as s, type RAGConfig as t, type BasePlugin as u, type URLSourceAuth as v, type IngestionSchedule as w, type Tool as x, type PerformanceTimings as y, type RAGMetrics as z };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,9 @@
1
- import { P as ProviderConfig, a as ProviderType, b as Plugin, S as StoredPluginConfig, A as AgentData, c as StorageAdapter, d as AgentConfig, e as AgentFile, R as RAGDocument, I as IngestOptions, f as IngestResult, B as BulkOperation, g as BulkResult, U as URLSource, h as URLIngestResult, T as ThreadData, i as ThreadConfig, M as MessageRole, j as MessageAttachment, k as MessageData, C as ClientConfig, l as ChatRequest, m as ChatResponse, n as StreamCallbacks, o as RAGPlugin, p as ToolPlugin, q as MiddlewarePlugin, r as AnalyticsPlugin, s as RAGContext } from './index-m2vDW79n.mjs';
2
- export { L as AgentNotFoundError, K as AgentSDKError, u as BasePlugin, D as DataTransform, H as ErrorTrackingData, w as IngestionSchedule, Q as InvalidConfigError, W as MemoryStorage, V as MongoDBStorage, Y as MongoDBStorageConfig, y as PerformanceTimings, J as PluginRegistryInterface, O as ProviderNotFoundError, t as RAGConfig, z as RAGMetrics, F as RequestTrackingData, G as ResponseTrackingData, N as ThreadNotFoundError, E as TokenMetrics, x as Tool, v as URLSourceAuth, X as UpstashStorage, Z as UpstashStorageConfig } from './index-m2vDW79n.mjs';
1
+ import { P as ProviderConfig, e as ProviderType, f as Plugin, g as StoredPluginConfig, a as AgentData, S as StorageAdapter, A as AgentConfig, h as AgentFile, R as RAGDocument, I as IngestOptions, i as IngestResult, B as BulkOperation, j as BulkResult, U as URLSource, k as URLIngestResult, b as ThreadData, T as ThreadConfig, M as MessageRole, c as MessageAttachment, d as MessageData, C as ClientConfig, l as ChatRequest, m as ChatResponse, n as StreamCallbacks, o as RAGPlugin, p as ToolPlugin, q as MiddlewarePlugin, r as AnalyticsPlugin, s as RAGContext } from './index-Ek8b39d1.mjs';
2
+ export { L as AgentNotFoundError, K as AgentSDKError, u as BasePlugin, D as DataTransform, H as ErrorTrackingData, w as IngestionSchedule, Q as InvalidConfigError, y as PerformanceTimings, J as PluginRegistryInterface, O as ProviderNotFoundError, t as RAGConfig, z as RAGMetrics, F as RequestTrackingData, G as ResponseTrackingData, N as ThreadNotFoundError, E as TokenMetrics, x as Tool, v as URLSourceAuth } from './index-Ek8b39d1.mjs';
3
3
  import { LanguageModel, UserModelMessage, AssistantModelMessage, Schema } from 'ai';
4
+ export { MongoDBStorage, MongoDBStorageConfig } from './storage/MongoDBStorage.mjs';
5
+ export { MemoryStorage } from './storage/MemoryStorage.mjs';
6
+ export { UpstashStorage, UpstashStorageConfig } from './storage/UpstashStorage.mjs';
4
7
 
5
8
  /**
6
9
  * Provider factory for creating language model instances
@@ -30,21 +33,27 @@ declare class ProviderFactory {
30
33
  }
31
34
  /**
32
35
  * Common model names for quick reference
36
+ * Updated: February 2026
33
37
  */
34
38
  declare const Models: {
35
39
  readonly OpenAI: {
40
+ readonly GPT5: "gpt-5";
41
+ readonly GPT5_MINI: "gpt-5-mini";
36
42
  readonly GPT4O: "gpt-4o";
37
43
  readonly GPT4O_MINI: "gpt-4o-mini";
38
- readonly GPT4_TURBO: "gpt-4-turbo";
39
- readonly GPT35_TURBO: "gpt-3.5-turbo";
44
+ readonly O1: "o1";
45
+ readonly O1_MINI: "o1-mini";
40
46
  };
41
47
  readonly Anthropic: {
42
- readonly CLAUDE_35_SONNET: "claude-3-5-sonnet-20241022";
43
- readonly CLAUDE_35_HAIKU: "claude-3-5-haiku-20241022";
44
- readonly CLAUDE_3_OPUS: "claude-3-opus-20240229";
48
+ readonly CLAUDE_4_OPUS: "claude-opus-4-20250514";
49
+ readonly CLAUDE_4_SONNET: "claude-sonnet-4-20250514";
50
+ readonly CLAUDE_37_SONNET: "claude-3-7-sonnet-latest";
51
+ readonly CLAUDE_35_SONNET: "claude-3-5-sonnet-latest";
52
+ readonly CLAUDE_35_HAIKU: "claude-3-5-haiku-latest";
45
53
  };
46
54
  readonly Google: {
47
- readonly GEMINI_2_FLASH: "gemini-2.0-flash-exp";
55
+ readonly GEMINI_2_FLASH: "gemini-2.0-flash";
56
+ readonly GEMINI_2_FLASH_LITE: "gemini-2.0-flash-lite";
48
57
  readonly GEMINI_15_PRO: "gemini-1.5-pro";
49
58
  readonly GEMINI_15_FLASH: "gemini-1.5-flash";
50
59
  };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { P as ProviderConfig, a as ProviderType, b as Plugin, S as StoredPluginConfig, A as AgentData, c as StorageAdapter, d as AgentConfig, e as AgentFile, R as RAGDocument, I as IngestOptions, f as IngestResult, B as BulkOperation, g as BulkResult, U as URLSource, h as URLIngestResult, T as ThreadData, i as ThreadConfig, M as MessageRole, j as MessageAttachment, k as MessageData, C as ClientConfig, l as ChatRequest, m as ChatResponse, n as StreamCallbacks, o as RAGPlugin, p as ToolPlugin, q as MiddlewarePlugin, r as AnalyticsPlugin, s as RAGContext } from './index-m2vDW79n.js';
2
- export { L as AgentNotFoundError, K as AgentSDKError, u as BasePlugin, D as DataTransform, H as ErrorTrackingData, w as IngestionSchedule, Q as InvalidConfigError, W as MemoryStorage, V as MongoDBStorage, Y as MongoDBStorageConfig, y as PerformanceTimings, J as PluginRegistryInterface, O as ProviderNotFoundError, t as RAGConfig, z as RAGMetrics, F as RequestTrackingData, G as ResponseTrackingData, N as ThreadNotFoundError, E as TokenMetrics, x as Tool, v as URLSourceAuth, X as UpstashStorage, Z as UpstashStorageConfig } from './index-m2vDW79n.js';
1
+ import { P as ProviderConfig, e as ProviderType, f as Plugin, g as StoredPluginConfig, a as AgentData, S as StorageAdapter, A as AgentConfig, h as AgentFile, R as RAGDocument, I as IngestOptions, i as IngestResult, B as BulkOperation, j as BulkResult, U as URLSource, k as URLIngestResult, b as ThreadData, T as ThreadConfig, M as MessageRole, c as MessageAttachment, d as MessageData, C as ClientConfig, l as ChatRequest, m as ChatResponse, n as StreamCallbacks, o as RAGPlugin, p as ToolPlugin, q as MiddlewarePlugin, r as AnalyticsPlugin, s as RAGContext } from './index-Ek8b39d1.js';
2
+ export { L as AgentNotFoundError, K as AgentSDKError, u as BasePlugin, D as DataTransform, H as ErrorTrackingData, w as IngestionSchedule, Q as InvalidConfigError, y as PerformanceTimings, J as PluginRegistryInterface, O as ProviderNotFoundError, t as RAGConfig, z as RAGMetrics, F as RequestTrackingData, G as ResponseTrackingData, N as ThreadNotFoundError, E as TokenMetrics, x as Tool, v as URLSourceAuth } from './index-Ek8b39d1.js';
3
3
  import { LanguageModel, UserModelMessage, AssistantModelMessage, Schema } from 'ai';
4
+ export { MongoDBStorage, MongoDBStorageConfig } from './storage/MongoDBStorage.js';
5
+ export { MemoryStorage } from './storage/MemoryStorage.js';
6
+ export { UpstashStorage, UpstashStorageConfig } from './storage/UpstashStorage.js';
4
7
 
5
8
  /**
6
9
  * Provider factory for creating language model instances
@@ -30,21 +33,27 @@ declare class ProviderFactory {
30
33
  }
31
34
  /**
32
35
  * Common model names for quick reference
36
+ * Updated: February 2026
33
37
  */
34
38
  declare const Models: {
35
39
  readonly OpenAI: {
40
+ readonly GPT5: "gpt-5";
41
+ readonly GPT5_MINI: "gpt-5-mini";
36
42
  readonly GPT4O: "gpt-4o";
37
43
  readonly GPT4O_MINI: "gpt-4o-mini";
38
- readonly GPT4_TURBO: "gpt-4-turbo";
39
- readonly GPT35_TURBO: "gpt-3.5-turbo";
44
+ readonly O1: "o1";
45
+ readonly O1_MINI: "o1-mini";
40
46
  };
41
47
  readonly Anthropic: {
42
- readonly CLAUDE_35_SONNET: "claude-3-5-sonnet-20241022";
43
- readonly CLAUDE_35_HAIKU: "claude-3-5-haiku-20241022";
44
- readonly CLAUDE_3_OPUS: "claude-3-opus-20240229";
48
+ readonly CLAUDE_4_OPUS: "claude-opus-4-20250514";
49
+ readonly CLAUDE_4_SONNET: "claude-sonnet-4-20250514";
50
+ readonly CLAUDE_37_SONNET: "claude-3-7-sonnet-latest";
51
+ readonly CLAUDE_35_SONNET: "claude-3-5-sonnet-latest";
52
+ readonly CLAUDE_35_HAIKU: "claude-3-5-haiku-latest";
45
53
  };
46
54
  readonly Google: {
47
- readonly GEMINI_2_FLASH: "gemini-2.0-flash-exp";
55
+ readonly GEMINI_2_FLASH: "gemini-2.0-flash";
56
+ readonly GEMINI_2_FLASH_LITE: "gemini-2.0-flash-lite";
48
57
  readonly GEMINI_15_PRO: "gemini-1.5-pro";
49
58
  readonly GEMINI_15_FLASH: "gemini-1.5-flash";
50
59
  };