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

Method validateContent

apps/sim/executor/handlers/agent/memory.ts:290–297  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

288 }
289
290 private validateContent(content: string): void {
291 const size = Buffer.byteLength(content, 'utf8')
292 if (size > MEMORY.MAX_MESSAGE_CONTENT_BYTES) {
293 throw new Error(
294 `Message content too large (${size} bytes, max ${MEMORY.MAX_MESSAGE_CONTENT_BYTES})`
295 )
296 }
297 }
298}
299
300export const memoryService = new Memory()

Callers 2

appendToMemoryMethod · 0.95
memory.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected