MCPcopy Create free account
hub / github.com/53AI/53AIHub / sendProcessStep

Function sendProcessStep

api/controller/relay/relay_process_step.go:127–139  ·  view source on GitHub ↗

sendProcessStep 发送处理步骤的流式数据

(c *gin.Context, requestId string, step ProcessStep)

Source from the content-addressed store, hash-verified

125
126// sendProcessStep 发送处理步骤的流式数据
127func sendProcessStep(c *gin.Context, requestId string, step ProcessStep) error {
128 if shouldSkipProcessStepInCompact(step) {
129 return nil
130 }
131 hashedStep := normalizeProcessStep(step)
132
133 if !isMessageIDFirstFrameSent(c) {
134 enqueuePendingProcessStep(c, requestId, hashedStep)
135 return nil
136 }
137
138 return sendProcessStepRaw(c, requestId, hashedStep)
139}
140
141func sendProcessStepRaw(c *gin.Context, requestId string, hashedStep ProcessStep) error {
142 if streamDone, exists := c.Get("stream_response_done"); exists {

Callers 12

emitLLMDeltaMethod · 0.85
flushToolLogDeltaBufferFunction · 0.85
queueToolLogDeltaFunction · 0.85
runAgentLoopFunction · 0.85
handleSandboxStreamEventFunction · 0.85
sendOutputFilesStepFunction · 0.85
EndStartWebSearchStepMethod · 0.85
SendOutOfRangeReplyMethod · 0.85
SendStartStepMethod · 0.85
SendEndStepMethod · 0.85
processSoloFileChatFunction · 0.85

Calls 5

normalizeProcessStepFunction · 0.85
sendProcessStepRawFunction · 0.85

Tested by

no test coverage detected