mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-07 16:23:58 +08:00
fix(devin): update streaming tool call step metadata if arriving in subsequent frames
This commit is contained in:
@@ -700,6 +700,12 @@ func (e *DevinExecutor) streamDevinFrames(
|
||||
if !emitInteractionsEvent(startEvent) {
|
||||
return
|
||||
}
|
||||
} else if tc.Name != "" || tc.ID != "" {
|
||||
updateEvent, _ := sjson.SetBytes([]byte(`{"event_type":"step.start","index":0,"step":{"type":"function_call","name":"","id":"","call_id":"","arguments":{}}}`), "index", sIdx)
|
||||
updateEvent, _ = sjson.SetBytes(updateEvent, "step.name", tc.Name)
|
||||
updateEvent, _ = sjson.SetBytes(updateEvent, "step.id", tc.ID)
|
||||
updateEvent, _ = sjson.SetBytes(updateEvent, "step.call_id", tc.ID)
|
||||
_ = emitInteractionsEvent(updateEvent)
|
||||
}
|
||||
|
||||
if tc.Arguments != "" {
|
||||
|
||||
Reference in New Issue
Block a user