Vigia

@firebase/ai を 2.x から 3.x へアップグレード

@firebase/ai 2.16.0 と 3.0.0 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。

概要

削除されたインポートパス0
削除されたエクスポート2
変更されたシグネチャ3
削除されたクラス/インターフェースのメンバー53
変更されたクラス/インターフェースのメンバー8
新たに非推奨11
要件の変更(engines、peer 依存関係)1
新しいエクスポート1

削除されたエクスポート

importexportkind変更前
@firebase/aiChatSessionBaseclassclass
@firebase/aiVertexAIBackendclassclass

変更されたシグネチャ

export変更前変更後
@firebase/ai · ToolFunctionDeclarationsTool | CodeExecutionTool | GoogleMapsTool | GoogleSearchTool | URLContextToolCodeExecutionTool | FunctionDeclarationsTool | GoogleMapsTool | GoogleSearchTool | URLContextTool
@firebase/ai · BackendType"AGENT_PLATFORM" | "VERTEX_AI" | "GOOGLE_AI""AGENT_PLATFORM" | "GOOGLE_AI"
@firebase/ai · ChatSessionclassinterface

削除されたクラス/インターフェースのメンバー

memberimport変更前
AI.location@firebase/aistring
TextPart.inlineData@firebase/aiundefined
TextPart.functionCall@firebase/aiundefined
TextPart.executableCode@firebase/aiundefined
TextPart.functionResponse@firebase/aiundefined
TextPart.codeExecutionResult@firebase/aiundefined
GoogleMaps.enableWidget@firebase/aiboolean | undefined
ChatSession._history@firebase/aiContent[]
ChatSession._apiSettings@firebase/aiApiSettings
ChatSession.chromeAdapter@firebase/aiany
LiveSession.sendMediaChunks@firebase/ai(mediaChunks: GenerativeContentBlob[]): Promise<void>
LiveSession.sendMediaStream@firebase/ai(mediaChunkStream: ReadableStream<GenerativeContentBlob>): Promise<void>
FileDataPart.text@firebase/aiundefined
FileDataPart.inlineData@firebase/aiundefined
FileDataPart.functionCall@firebase/aiundefined
FileDataPart.executableCode@firebase/aiundefined
FileDataPart.functionResponse@firebase/aiundefined
FileDataPart.codeExecutionResult@firebase/aiundefined
InlineDataPart.text@firebase/aiundefined
InlineDataPart.functionCall@firebase/aiundefined
InlineDataPart.executableCode@firebase/aiundefined
InlineDataPart.functionResponse@firebase/aiundefined
InlineDataPart.codeExecutionResult@firebase/aiundefined
FunctionCallPart.text@firebase/aiundefined
FunctionCallPart.inlineData@firebase/aiundefined
FunctionCallPart.executableCode@firebase/aiundefined
FunctionCallPart.functionResponse@firebase/aiundefined
FunctionCallPart.codeExecutionResult@firebase/aiundefined
GroundingMetadata.retrievalQueries@firebase/aistring[] | undefined
ExecutableCodePart.text@firebase/aiundefined
ExecutableCodePart.thought@firebase/aiundefined
ExecutableCodePart.fileData@firebase/ainever
ExecutableCodePart.inlineData@firebase/aiundefined
ExecutableCodePart.functionCall@firebase/aiundefined
ExecutableCodePart.functionResponse@firebase/aiundefined
ExecutableCodePart.codeExecutionResult@firebase/aiundefined
CountTokensResponse.totalBillableCharacters@firebase/ainumber | undefined
FunctionResponsePart.text@firebase/aiundefined
FunctionResponsePart.inlineData@firebase/aiundefined
FunctionResponsePart.functionCall@firebase/aiundefined
FunctionResponsePart.executableCode@firebase/aiundefined
FunctionResponsePart.codeExecutionResult@firebase/aiundefined
CodeExecutionResultPart.text@firebase/aiundefined
CodeExecutionResultPart.thought@firebase/aiundefined
CodeExecutionResultPart.fileData@firebase/ainever
CodeExecutionResultPart.inlineData@firebase/aiundefined
CodeExecutionResultPart.functionCall@firebase/aiundefined
CodeExecutionResultPart.executableCode@firebase/aiundefined
CodeExecutionResultPart.functionResponse@firebase/aiundefined
LanguageModelCreateOptions.topK@firebase/ainumber | undefined
LanguageModelCreateOptions.temperature@firebase/ainumber | undefined
LanguageModelCreateCoreOptions.topK@firebase/ainumber | undefined
LanguageModelCreateCoreOptions.temperature@firebase/ainumber | undefined

変更されたクラス/インターフェースのメンバー

member変更前変更後
ChatSession.constructor(apiSettings: ApiSettings, model: string, chromeAdapter?: ChromeAdapter | undefined, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined): ChatSession
GenerativeModel.generateContent(request: string | GenerateContentRequest | (string | Part)[], singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>(request: string | (string | Part)[] | GenerateContentRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>
GenerativeModel.generateContentStream(request: string | GenerateContentRequest | (string | Part)[], singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>(request: string | (string | Part)[] | GenerateContentRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>
ExecutableCodePart.executableCodeExecutableCode | undefinedExecutableCode
CodeExecutionResultPart.codeExecutionResultCodeExecutionResult | undefinedCodeExecutionResult
StartTemplateChatParams.templateVariablesRecord<string, unknown> | undefinedRecord<string, unknown>
TemplateGenerativeModel.generateContent(templateId: string, templateVariables: Record<string, unknown>, singleRequestOptions?: SingleRequestOptions | undefined, templateToolConfig?: TemplateToolConfig | undefined): Promise<GenerateContentResult>(request: TemplateRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentResult>
TemplateGenerativeModel.generateContentStream(templateId: string, templateVariables: Record<string, unknown>, singleRequestOptions?: SingleRequestOptions | undefined, templateToolConfig?: TemplateToolConfig | undefined): Promise<GenerateContentStreamResult>(request: TemplateRequest, singleRequestOptions?: SingleRequestOptions | undefined): Promise<GenerateContentStreamResult>

新たに非推奨

export@deprecated
@firebase/ai · GenerationConfig.topKNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.topPNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.temperatureNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · GenerationConfig.candidateCountNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Make parallel requests instead.
@firebase/ai · GenerationConfig.presencePenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · GenerationConfig.frequencyPenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · LiveGenerationConfig.topKNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.topPNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.temperatureNot supported in Gemini 3.x and later models. The model will ignore this parameter if it's included in a request. Omit this parameter and let the model manage sampling automatically.
@firebase/ai · LiveGenerationConfig.presencePenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.
@firebase/ai · LiveGenerationConfig.frequencyPenaltyNot supported in Gemini 3.x and later models. Requests that include this parameter will fail with a 400 error. Omit this parameter.

要件の変更(engines、peer 依存関係)

変更前変更後
engines.node>=20.0.0>=24.12.0
新しいエクスポート (1)
importexportkind
@firebase/aiTemplateRequestinterface

このデータを AI エージェントに渡す

Vigia は無料の MCP サーバーです。コーディングエージェントがコードを書く前に、バージョン・破壊的変更・脆弱性を確認できます。登録も API キーも不要です。

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Cursor に追加VS Code に追加★ GitHub でスターを付ける

その他の MCP クライアント
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

エージェント用スキル (SKILL.md):Vigia を使うタイミングをエージェントに伝えます · プルリクエスト用 GitHub Action

よくある質問

@firebase/ai を 2 から 3 にアップグレードする際の破壊的変更は?

@firebase/ai 2.16.0 と 3.0.0 の間で、Vigia は削除されたエクスポートを 2 件、変更されたシグネチャを 3 件、削除または変更されたクラス/インターフェースのメンバーを 61 件検出しました。

@firebase/ai 3 で非推奨になったものは?

@firebase/ai 3.0.0 では 11 件のエクスポートまたはメンバーが新たに非推奨になりました。

エージェント向け

GET https://vigia.coredls.cloud/v1/packages/npm/@firebase/ai/upgrade?from=2.16.0&to=3.0.0