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

Function createStreamingContext

apps/sim/lib/copilot/request/go/stream.test.ts:87–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87function createStreamingContext(): StreamingContext {
88 return {
89 messageId: 'msg-1',
90 accumulatedContent: '',
91 finalAssistantContent: '',
92 sawMainToolCall: false,
93 contentBlocks: [],
94 toolCalls: new Map(),
95 pendingToolPromises: new Map(),
96 currentThinkingBlock: null,
97 subagentThinkingBlocks: new Map(),
98 isInThinkingBlock: false,
99 subAgentContent: {},
100 subAgentToolCalls: {},
101 pendingContent: '',
102 streamComplete: false,
103 wasAborted: false,
104 errors: [],
105 activeFileIntents: new Map(),
106 trace: new TraceCollector(),
107 }
108}
109
110describe('copilot go stream helpers', () => {
111 beforeEach(() => {

Callers 1

stream.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected