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

Method resolveOutput

apps/sim/executor/variables/resolvers/loop.ts:202–221  ·  view source on GitHub ↗
(loopId: string, pathParts: string[], context: ResolutionContext)

Source from the content-addressed store, hash-verified

200 }
201
202 private resolveOutput(loopId: string, pathParts: string[], context: ResolutionContext): unknown {
203 const output = context.executionState.getBlockOutput(loopId)
204 if (!output || typeof output !== 'object') {
205 return undefined
206 }
207 const value = navigatePath(output, ['results'], {
208 allowLargeValueRefs: true,
209 executionContext: context.executionContext,
210 })
211 if (pathParts.length > 0) {
212 return navigatePath(value, pathParts, {
213 allowLargeValueRefs: context.allowLargeValueRefs,
214 executionContext: context.executionContext,
215 })
216 }
217 if (!context.allowLargeValueRefs) {
218 assertNoLargeValueRefs(value)
219 }
220 return value
221 }
222
223 private async resolveOutputAsync(
224 loopId: string,

Callers 1

resolveInternalMethod · 0.95

Calls 3

navigatePathFunction · 0.90
assertNoLargeValueRefsFunction · 0.90
getBlockOutputMethod · 0.65

Tested by

no test coverage detected