← Back to GeminiPulse | Developer Workbench
[SIMULATED DEMO] GOOGLE GEN AI SDK v3.4.0 GA

Tool Search & Static Media Slicing Studio

Interactive simulator exploring Google Gen AI SDK v3.4.0: evaluate dynamic ToolSearch in the Interactions API (saving 95%+ prompt tokens), simulate declarative audio and document slicing, and calculate batch embedding token efficiencies.

🎯 Select Production Scenario
Simulated Configuration Controls
📊 Token Efficiency & Execution Trace
42,850
Prior Static Prompt Tokens
480
SDK v3.4.0 Tokens Used
Token Budget Reduction 98.9% Saved
Interactions Step Stream
step[0] • user input: "Check pod crash restarts in us-east-prod namespace checkout"
step[3] • tool_call: query_k8s_pods({ cluster: "us-east-prod", namespace: "checkout" })
step[4] • model output: "Found 2 crashing pods with OOMKilled status. Recommendation: raise memory limit to 2Gi."
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });

// Launch interaction with dynamic ToolSearch enabled
const interaction = await ai.clients.interactions.create({
  model: "gemini-4-hydrogen",
  input: "Check why the pods in our us-east-prod cluster under namespace 'checkout' are restarting.",
  config: {
    thinking_config: { thinking_level: "high" },
    automatic_continuation: true,
    tools: [
      {
        tool_search: {
          description: "Enterprise infrastructure, Kubernetes and observability tool registry"
        }
      }
    ]
  }
});

console.log("Final Resolution:", interaction.output?.text);