MCPcopy Create free account
hub / github.com/simstudioai/sim / formatReadingLabel

Function formatReadingLabel

apps/sim/lib/copilot/tools/client/store-utils.ts:69–82  ·  view source on GitHub ↗
(target: string | undefined, state: ClientToolCallState)

Source from the content-addressed store, hash-verified

67}
68
69function formatReadingLabel(target: string | undefined, state: ClientToolCallState): string {
70 const suffix = target ? ` ${target}` : ''
71 switch (state) {
72 case ClientToolCallState.success:
73 return `Read${suffix}`
74 case ClientToolCallState.error:
75 return `Attempted to read${suffix}`
76 case ClientToolCallState.rejected:
77 case ClientToolCallState.aborted:
78 return `Skipped reading${suffix}`
79 default:
80 return `Reading${suffix}`
81 }
82}
83
84/**
85 * VFS paths store each segment percent-encoded (see {@link encodeVfsSegment}), so

Callers 1

specialToolDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected