@@ -67,6 +67,13 @@ export async function cancelQvac() {
|
||||
await Agent.engine.cancel();
|
||||
}
|
||||
|
||||
export async function cancelQvacRequest({ requestId, modelId, kind } = {}) {
|
||||
if (!requestId && !modelId) throw new Error('requestId or modelId is required');
|
||||
const sdk = await Agent.engine.ensureInit();
|
||||
if (typeof sdk.cancel !== 'function') throw new Error('QVAC runtime does not expose cancel()');
|
||||
await sdk.cancel(requestId ? { requestId } : { modelId, kind });
|
||||
}
|
||||
|
||||
export async function suspendQvac() {
|
||||
const sdk = await Agent.engine.ensureInit();
|
||||
if (typeof sdk.suspend !== 'function') throw new Error('QVAC runtime does not expose suspend()');
|
||||
|
||||
Reference in New Issue
Block a user