Use request id to make api idempotence on sdk retry (#4694)

* Use request id to make api idempotence on sdk retry

Derive resource id from request id
This commit is contained in:
cnderrauber
2026-08-12 09:28:39 +08:00
committed by GitHub
parent 223587e140
commit fad2cc4afe
9 changed files with 143 additions and 18 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func (ag *AgentDispatchService) CreateDispatch(ctx context.Context, req *livekit
}
dispatch := &livekit.AgentDispatch{
Id: guid.New(guid.AgentDispatchPrefix),
Id: DeterministicID(guid.AgentDispatchPrefix, RequestID(ctx)),
AgentName: req.AgentName,
Room: req.Room,
Metadata: req.Metadata,