(conversationId?: string)
| 277 | } |
| 278 | |
| 279 | private validateConversationId(conversationId?: string): void { |
| 280 | if (!conversationId || conversationId.trim() === '') { |
| 281 | throw new Error('Conversation ID is required') |
| 282 | } |
| 283 | if (conversationId.length > MEMORY.MAX_CONVERSATION_ID_LENGTH) { |
| 284 | throw new Error( |
| 285 | `Conversation ID too long (max ${MEMORY.MAX_CONVERSATION_ID_LENGTH} characters)` |
| 286 | ) |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | private validateContent(content: string): void { |
| 291 | const size = Buffer.byteLength(content, 'utf8') |
no outgoing calls
no test coverage detected