{"generatedAt":"2026-10-24T12:11:27.697Z","canonicalUrl":"https://agentbreakwatch.vercel.app/p/google-genai-js","llmsTxtUrl":"https://agentbreakwatch.vercel.app/p/google-genai-js/llms.txt","categoryHub":{"slug":"agent-sdks","title":"AI Agent SDKs & Frameworks Breaking-Change Index","url":"https://agentbreakwatch.vercel.app/c/agent-sdks"},"tldrVerdict":"Google Gen AI SDK (JS/TS) (@google/genai) is currently at v2.31.0 on NPM (published 2026-10-23), with a 90-day Stability Score of 82/100 (B+) and MEDIUM schema drift risk. Replaces deprecated @google/generative-ai package; v2.x standardizes ai.models.generateContent and functionDeclarations schema typing.","package":{"slug":"google-genai-js","packageName":"@google/genai","registry":"npm","kind":"sdk","subcategory":"Model Provider SDK","displayName":"Google Gen AI SDK (JS/TS)","vendor":"Google","githubRepo":"googleapis/js-genai","breakingSummary":"Replaces deprecated @google/generative-ai package; v2.x standardizes ai.models.generateContent and functionDeclarations schema typing.","schemaDriftRisk":"medium","affectedSymbols":["GoogleGenAI","ai.models.generateContent","FunctionDeclaration"],"migrationBefore":"import { GoogleGenerativeAI } from \"@google/generative-ai\";\nconst genAI = new GoogleGenerativeAI(API_KEY);\nconst model = genAI.getGenerativeModel({ model: \"gemini-1.5-pro\" });","migrationAfter":"import { GoogleGenAI } from \"@google/genai\";\nconst ai = new GoogleGenAI({ apiKey: API_KEY });\nconst response = await ai.models.generateContent({ model: \"gemini-2.5-pro\", contents: \"Hello\" });","description":"","latestVersion":"2.31.0","latestPublishedAt":"2026-10-23T00:40:52.721Z","recentVersions":[{"version":"2.31.0","publishedAt":"2026-10-23T00:40:52.721Z"},{"version":"2.30.0","publishedAt":"2026-10-15T00:06:41.128Z"},{"version":"2.29.1","publishedAt":"2026-10-13T15:26:26.676Z"},{"version":"2.29.0","publishedAt":"2026-10-13T05:11:13.088Z"},{"version":"2.28.0","publishedAt":"2026-10-07T22:06:19.843Z"},{"version":"2.27.0","publishedAt":"2026-10-02T18:24:51.660Z"}],"releasesLast90d":20,"dependenciesCount":4,"license":"Apache-2.0","registryUrl":"https://www.npmjs.com/package/@google/genai","githubUrl":"https://github.com/googleapis/js-genai","installCommand":"npm install @google/genai@2.31.0","stabilityScore":82,"stabilityGrade":"B+"}}