from google import genai
client = genai.Client()
response = client.interactions.create(
model="gemini-2.5-computer-use-preview-10-2025",
tools=[{"type": "computer_use"}],
input="Find a flight to Tokyo"
)
print(response.steps[-1].content[0].text)
import {GoogleGenAI} from '@google/genai';
const ai = new GoogleGenAI({});
const interaction = await ai.interactions.create({
model: 'gemini-2.5-computer-use-preview-10-2025',
tools: [{ type: 'computer_use'}],
input: 'Find a flight to Tokyo'
});
console.log(interaction.steps.at(-1).content[0].text);