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

Function isToolCallStreamEvent

apps/sim/lib/copilot/request/session/contract.ts:401–403  ·  view source on GitHub ↗
(event: SessionStreamEvent)

Source from the content-addressed store, hash-verified

399// ---------------------------------------------------------------------------
400
401export function isToolCallStreamEvent(event: SessionStreamEvent): event is ToolCallStreamEvent {
402 return event.type === 'tool' && isRecordLike(event.payload) && event.payload.phase === 'call'
403}
404
405export function isToolArgsDeltaStreamEvent(
406 event: SessionStreamEvent

Callers 4

shouldSkipToolCallEventFunction · 0.90
handleToolEventFunction · 0.90

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected