MCPcopy Create free account
hub / github.com/Noumena-Network/code / isToolResultBlock

Function isToolResultBlock

src/services/api/claude.ts:3067–3077  ·  view source on GitHub ↗
(
  block: unknown,
)

Source from the content-addressed store, hash-verified

3065}
3066
3067function isToolResultBlock(
3068 block: unknown,
3069): block is { type: 'tool_result'; tool_use_id: string } {
3070 return (
3071 block !== null &&
3072 typeof block === 'object' &&
3073 'type' in block &&
3074 (block as { type: string }).type === 'tool_result' &&
3075 'tool_use_id' in block
3076 )
3077}
3078
3079type CachedMCEditsBlock = {
3080 type: 'cache_edits'

Callers 1

addCacheBreakpointsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected