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

Function resultContent

apps/sim/lib/copilot/request/lifecycle/run.ts:59–64  ·  view source on GitHub ↗
(context: StreamingContext, options: CopilotLifecycleOptions)

Source from the content-addressed store, hash-verified

57}
58
59function resultContent(context: StreamingContext, options: CopilotLifecycleOptions): string {
60 if (options.interactive === false && context.sawMainToolCall) {
61 return context.finalAssistantContent
62 }
63 return context.accumulatedContent
64}
65
66export interface CopilotLifecycleOptions extends OrchestratorOptions {
67 userId: string

Callers 1

runCopilotLifecycleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected