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

Function addOp

apps/sim/lib/knowledge/connectors/sync-engine.test.ts:233–243  ·  view source on GitHub ↗
(sizeBytes?: number)

Source from the content-addressed store, hash-verified

231describe('chunkOpsByByteBudget', () => {
232 const MB = 1024 * 1024
233 const addOp = (sizeBytes?: number) => ({
234 type: 'add' as const,
235 extDoc: {
236 externalId: `e-${Math.random()}`,
237 title: 'f',
238 content: 'x',
239 contentHash: 'h',
240 mimeType: 'text/plain',
241 ...(sizeBytes != null ? { metadata: { fileSize: sizeBytes } } : {}),
242 },
243 })
244 const skipOp = (sizeBytes: number) => ({
245 type: 'skip' as const,
246 extDoc: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected