MCPcopy Index your code
hub / github.com/simstudioai/sim / validateConversationId

Method validateConversationId

apps/sim/executor/handlers/agent/memory.ts:279–288  ·  view source on GitHub ↗
(conversationId?: string)

Source from the content-addressed store, hash-verified

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')

Callers 4

fetchMemoryMessagesMethod · 0.95
appendToMemoryMethod · 0.95
seedMemoryMethod · 0.95
memory.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected