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

Function addContentBlock

apps/sim/lib/copilot/request/handlers/types.ts:41–49  ·  view source on GitHub ↗
(
  context: StreamingContext,
  block: Omit<ContentBlock, 'timestamp'>
)

Source from the content-addressed store, hash-verified

39const logger = createLogger('CopilotHandlerHelpers')
40
41export function addContentBlock(
42 context: StreamingContext,
43 block: Omit<ContentBlock, 'timestamp'>
44): void {
45 context.contentBlocks.push({
46 ...block,
47 timestamp: Date.now(),
48 })
49}
50
51export function stampBlockEnd(block: ContentBlock): void {
52 if (block.endedAt === undefined) block.endedAt = Date.now()

Callers 5

handleTextEventFunction · 0.90
handleRunEventFunction · 0.90
registerSubagentToolCallFunction · 0.90
registerMainToolCallFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected