MCPcopy Create free account
hub / github.com/coder/coder / resetConversation

Method resetConversation

scaletest/chat/run.go:156–170  ·  view source on GitHub ↗
(conversationStart time.Time, markTurnStartReady func())

Source from the content-addressed store, hash-verified

154}
155
156func (r *Runner) resetConversation(conversationStart time.Time, markTurnStartReady func()) {
157 if markTurnStartReady == nil {
158 markTurnStartReady = func() {}
159 }
160
161 r.result = runnerResult{}
162 r.conversationStart = conversationStart
163 r.turnStartTime = conversationStart
164 r.currentPhase = phaseInitial
165 r.lastStreamError = ""
166 r.lastStatus = ""
167 r.sawTurnRunning = false
168 r.sawTurnFirstOutput = false
169 r.markTurnStartReady = markTurnStartReady
170}
171
172func (r *Runner) runConversation(ctx context.Context, chatID uuid.UUID, logger slog.Logger, events <-chan codersdk.ChatStreamEvent) error {
173 r.chatID = chatID

Callers 3

RunMethod · 0.95
runTestConversationFunction · 0.80

Calls

no outgoing calls

Tested by 2

runTestConversationFunction · 0.64