Idempotent Inference Requests
A client may retry after a network timeout. Implement new_request_ids(request_ids, completed_ids) and return IDs that should be processed. Exclude IDs already completed and process each new ID only once, preserving first-seen order. IDs are strings. This is the admission step of an idempotency-key workflow; persistent result storage is outside this function.
Examples
EXAMPLE WALKTHROUGHretry and duplicate
A guided view of the published example, not a trace of your code.
INPUT
[["a","b","a","c"],["b"]]TASKnew_request_ids()
EXPECTED OUTPUT
["a","c"]Start with the input values shown in this example.
Example 1 of 2
Input: request_ids = ["a","b","a","c"], completed_ids = ["b"]
Output: ["a","c"]
Explanation: retry and duplicate
Input: request_ids = ["x","x"], completed_ids = []
Output: ["x"]
Explanation: same batch duplicate
Hint 1
Start the seen set with completed IDs.