Back to blog
Workflow
Vercel

How I filter agent tools without burning output tokens

Thắng Đoàn
Thắng Đoàn

Running routing, policy checks, or ranking through a generative model means paying for output text you never wanted. Gemini Decision 1 on Vercel's AI Gateway returns booleans, choices, and scores instead, avoiding that output entirely.

What it is

Gemini Decision 1 is a multimodal decision model from Google, accessible through AI Gateway with the AI SDK, TypeSafe-compatible API, or Decisions API. It takes text, images, audio, video, and PDFs as input and returns structured decisions rather than generated text.

Applied case

A developer building an agent can use the model to filter which tools an incoming request is allowed to call, asking a Boolean question about each tool before execution. The same pattern works for policy checks on user-submitted PDFs or ranking retrieved results by score. Decision calls show up in AI Gateway logs and count toward budgets like any other model request, so usage and cost stay visible. PDF, audio, and video inputs require AI SDK 7, while the TypeSafe-compatible and Decisions APIs support text and image inputs.

  • Use google/gemini-decision-1 via the AI SDK, TypeSafe API, or Decisions API for tool filtering and ranking

When to use it

Use when you need routing, policy checks, tool filtering, or ranking as booleans, choices, or scores.
Skip when you need generated text or structured content output.

Read more

Gemini Decision 1 on AI Gateway

Decision modality docs

Decision model guides

Share:

Recommended for you

Enjoyed this article?

Subscribe for new articles. No spam. Unsubscribe anytime.

By subscribing you agree to receive the newsletter. No spam, and you can unsubscribe anytime.