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

Function makeResumeLegContext

apps/sim/lib/copilot/request/lifecycle/run.ts:290–301  ·  view source on GitHub ↗
(base: StreamingContext)

Source from the content-addressed store, hash-verified

288// When adding a per-leg field, update BOTH functions (and the contract test in
289// resume-leg-context.test.ts). Exported only for that test.
290export function makeResumeLegContext(base: StreamingContext): StreamingContext {
291 return {
292 ...base,
293 streamComplete: false,
294 awaitingAsyncContinuation: undefined,
295 accumulatedContent: '',
296 finalAssistantContent: '',
297 usage: undefined,
298 cost: undefined,
299 errors: [],
300 }
301}
302
303// mergeResumeLegOutputs folds a finished leg's isolated scalars back into the
304// shared context. Child (subagent-lane) legs leave the join scalars empty; only

Callers 2

driveOneChildChainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected