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

Function nonBlankString

apps/sim/lib/copilot/request/lifecycle/run.ts:53–57  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

51const RESUME_BACKOFF_MS = [250, 500, 1000] as const
52
53function nonBlankString(value: unknown): string | undefined {
54 if (typeof value !== 'string') return undefined
55 const trimmed = value.trim()
56 return trimmed.length > 0 ? trimmed : undefined
57}
58
59function resultContent(context: StreamingContext, options: CopilotLifecycleOptions): string {
60 if (options.interactive === false && context.sawMainToolCall) {

Callers 1

runCheckpointLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected