Impress

Gemini API、必要なツールのみを取得可能に トークン消費を削減

Impress 元記事

予習

この記事のキーワード — タップで意味
×3
読み込む
よみこむ
1. to read thoroughly; to read repeatedly 2. to express (e.g. emotion in poetry)
×3
定義
ていぎ
definition
N1
×2
精度
せいど
precision; accuracy
×1
関数
かんすう
1. function 2. function (programming)
×3
のみ
only; nothing but
Googleは19日(米国時間)、Gemini APIのInteractions APIで、AIエージェントが必要なツールのみを取得する新機能「Tool Retrieval」のプレビュー提供を開始した。入力トークン数の削減とツール選択精度の維持を図る。対応モデルはGemini 3.6以降。 従来は、Gemini APIを利用するアプリに多数のツールを接続していると、Geminiに処理を依頼するたびにすべてのツールのパラメータ定義を読み込む必要があり、ツール数が増えるほど入力トークン数や処理時間が増加し、ツールの選択精度も低下する課題があった。 Tool Retrievalは、各ツールの名前と説明のみをGeminiに認識させ、詳細な定義は必要になるまで読み込まない機能。Geminiが処理時に使用するツールを判断すると、該当するツールのパラメータ定義を取得し、関数の呼び出しまでを1回のリクエスト内で実行する。これにより、数十から数百のツールを接続している場合でも、不要なツールの読み込みを減らせる。 利用には、APIへのリクエストに「tool_search」を追加し、必要時のみ読み込みたいツールを指定する。ツールの検索はGoogleのサーバーで実行されるため、ユーザー側でインデックスを作成・管理する必要はない。同機能は、Gemini APIのリモートMCPサーバーにも対応している。

この記事の単語 (43)

×3
のみ
only; nothing but
×3
数
すう
1. several; a number of 2. quantity; amount
×3
定義
ていぎ
definition
×3
読み込む
よみこむ
1. to read thoroughly; to read repeatedly 2. to express (e.g. emotion in poetry)
×2
取得
しゅとく
acquisition; obtaining; gaining possession; purchase
×2
入力
にゅうりょく
input; (data) entry
×2
選択
せんたく
selection; choice; option
×2
精度
せいど
precision; accuracy
×2
対応
たいおう
1. correspondence (to); equivalence 2. suitability; coordination; matching; being appropriate (for)
×2
接続
せつぞく
1. connection; attachment; union; join; joint; link 2. changing trains
×2
処理
しょり
processing; dealing with; treatment; disposition; disposal
×2
機能
きのう
function; facility; faculty; feature
×2
実行
じっこう
execution (e.g. of a plan); carrying out; practice; action; implementation; fulfillment; realization
×1
米国
べいこく
(United States of) America; USA; US
×1
新機能
しんきのう
new functionality; new feature
×1
提供
ていきょう
1. offer; tender; providing; supplying; making available; donating (blood, organs, etc.) 2. sponsoring (a TV program)
×1
開始
かいし
start; commencement; beginning; initiation
×1
削減
さくげん
cut; reduction; curtailment
×1
維持
いじ
maintenance; preservation; improvement
×1
図る
はかる
1. to plan; to attempt; to devise 2. to plot; to conspire; to scheme
×1
以降
いこう
on and after; as from; hereafter; thereafter; since
×1
従来
じゅうらい
1. up to now; so far 2. traditional; conventional; usual; existing
×1
多数
たすう
1. large number (of); many 2. majority
×1
依頼
いらい
1. request; commission; entrusting (with a matter) 2. dependence; reliance
×1
増加
ぞうか
increase; rise; growth; addition; increment
×1
低下
ていか
fall; decline; lowering; deterioration; degradation
×1
課題
かだい
1. subject; theme; issue; matter 2. homework; assignment
×1
各
かく
each; every; all
×1
認識
にんしき
recognition; awareness; perception; understanding; knowledge; cognition; cognizance; cognisance
×1
詳細
しょうさい
1. details; particulars; specifics 2. detailed; specific; minute
×1
使用
しよう
use; application; employment; utilization; utilisation
×1
判断
はんだん
1. judgment; judgement; decision; conclusion; adjudication 2. divination
×1
該当
がいとう
corresponding to; being applicable to; being relevant to; coming under; falling under; fulfilling (requirements); meeting (conditions); qualifying for
×1
関数
かんすう
1. function 2. function (programming)
×1
呼び出し
よびだし
1. call; summons; paging; curtain call 2. usher who calls the names of wrestlers, sweeps the ring, etc.
×1
不要
ふよう
unnecessary; unneeded
×1
読み込み
よみこみ
reading; loading
×1
減らす
へらす
to abate; to decrease; to diminish; to shorten
×1
追加
ついか
addition; supplement; appending; appendix
×1
指定
してい
designation; specification; assignment; appointment; pointing at
×1
検索
けんさく
looking up (e.g. a word in a dictionary); retrieval (e.g. data); searching for; referring to
×1
作成
さくせい
drawing up (e.g. legal document, contract, will, etc.); preparing; writing; framing; making; producing; creating; creation
×1
管理
かんり
control; management (e.g. of a business)