from google import genai
client = genai.Client(vertexai=True, location="global")
# Cancel the in-progress interaction.
interaction = client.interactions.cancel(id="v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg")
print(interaction.status)
import {GoogleGenAI} from '@google/genai';
const ai = new GoogleGenAI({vertexai: true, location: 'global'});
// Cancel the in-progress interaction.
const interaction = await ai.interactions.cancel('v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg');
console.log(interaction.status);