UNPKG

@hashgraphonline/conversational-agent

Version:

Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera

31 lines (30 loc) 932 B
const DEFAULT_CONTENT_REFERENCE_CONFIG = { sizeThresholdBytes: 10 * 1024, maxAgeMs: 60 * 60 * 1e3, maxReferences: 100, maxTotalStorageBytes: 100 * 1024 * 1024, enableAutoCleanup: true, cleanupIntervalMs: 5 * 60 * 1e3, enablePersistence: false, storageBackend: "memory", cleanupPolicies: { recent: { maxAgeMs: 30 * 60 * 1e3, priority: 1 }, userContent: { maxAgeMs: 2 * 60 * 60 * 1e3, priority: 2 }, agentGenerated: { maxAgeMs: 60 * 60 * 1e3, priority: 3 }, default: { maxAgeMs: 60 * 60 * 1e3, priority: 4 } } }; class ContentReferenceError extends Error { constructor(message, type, referenceId, suggestedActions) { super(message); this.type = type; this.referenceId = referenceId; this.suggestedActions = suggestedActions; this.name = "ContentReferenceError"; } } export { ContentReferenceError, DEFAULT_CONTENT_REFERENCE_CONFIG }; //# sourceMappingURL=index25.js.map