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

Function blocksContainTools

apps/sim/lib/copilot/chat/persisted-message.ts:580–582  ·  view source on GitHub ↗
(blocks: RawBlock[])

Source from the content-addressed store, hash-verified

578}
579
580function blocksContainTools(blocks: RawBlock[]): boolean {
581 return blocks.some((b) => b.type === 'tool_call' || b.type === MothershipStreamV1EventType.tool)
582}
583
584function normalizeBlocks(rawBlocks: RawBlock[], messageContent: string): PersistedContentBlock[] {
585 const blocks = rawBlocks.map(normalizeBlock)

Callers 1

normalizeMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected