Repository navigation
decide reads images, audio, video, and PDFs. Gemini Decision joins the
providers, OpenAI reads images, and any template takes a file you name.
Added
- Media files with any template. A text template also takes an image,
audio, video, or PDF file that you name, on a provider that reads it.
Folders still give a text template text only (#111). - One way to attach files from Go.
decide.WithMediaattaches an image,
PDF, audio clip, or video the same way on every provider. A provider that
can't read it returnserrors.ErrUnsupportedbefore sending anything. - Gemini Decision.
--provider geminiandbackend.Geminirun
gemini-decision-1through Google's Gemini Decisions API, in beta. Set
GEMINI_API_KEY. - Images on OpenAI. Image templates such as
receipt-qualityrun with
--provider openai. - Audio, video, and PDFs on Gemini. Templates can read
audio,video,
orpdffiles. The new
invoice-checktemplate checks PDF invoices. - Media runs send two files at once unless
--workerssays otherwise,
and a request that sends a file may take up to 5 minutes, so large
uploads finish. - Image templates follow your credentials. With no
--provider, they
run on Cloudflare, OpenAI, or Gemini, whichever has a key set. OpenAI and
Gemini take images far larger than Clef's 4 MiB. decide models. Checks that your provider accepts your credentials
and lists the names you can pass to--model. A missing or rejected key
names the variable to fix.- Template tutorial. Write a project template, preview its inputs,
and read saved answers on support tickets. - Go tutorial. Turn a typed answer into allow, review, or escalate
with a policy that stays in your code. - Security tutorial. Rank the demo's functions with
security, then
confirm candidates with Claude Code's/decide:audit. - Docs for agents.
llms.txt, Markdown reference pages, and a guide to
running Decide from an agent.
Changed
- Media helpers removed.
cloudflare.SetImages,openai.SetImages, and
gemini.SetMediaare gone; usedecide.WithMedia. A[]byteanywhere in
state or anExtravalue is rejected, and a media attempt that times out
is not retried. - A new landing page. Why a decision model, which returns a value and
its probability instead of text, suits the quick calls a script makes on
every item, where it runs in CI, hooks and queues, what decide adds to
the model, the Claude Code plugin, and how close calls go to a person. - Shorter docs. The tutorials and reference pages say less, the
tutorials drop their numbered layout, and shell examples have no$
prompt. --helpnames what each flag takes, such as--limit Nand
--include PATTERN, so flags that take a value stand out.
Fixed
decide runs resumekey hint. A missing key no longer suggests--dry-run, whichruns resumedoes not have.- Text templates never read PDFs, images, or other binary files as text,
from files or stdin. A media file named to a text template says which
template reads it. A folder's skipped files are reported in one line
for each reason. - Media runs skip files decide rejects itself, such as a corrupt JPEG,
and those files never stop a run. Errors for a file that is too large or
a missing key name the providers that work. - Media runs hold less memory. A dry run or
--sampleno longer reads
every file into memory. An unreadable file in a folder is skipped. - Media in the docs and plugin. Providers lists which provider reads
which files, the quickstart and recipes show how to judge a screenshot or
PDF, and the plugin's judge tool says it reads text only.