{"name":"@deckyard/gemini","description":"A client for the Google Gemini API: generate content with tools, structured output and thinking, embeddings, files, context caching","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/deckyard/deck-gemini.git","ref":"0.1.0","commit":"2aa5d15090bbaab0c5544d3e205fa1c4faa646dc","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["gemini","google","llm","ai","chat"],"description":"A client for the Google Gemini API: generate content with tools, structured output and thinking, embeddings, files, context caching","publishedAt":"1794770625","repoId":1458227325,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.2.0":{"version":"0.2.0","kind":"git","url":"https://github.com/deckyard/deck-gemini.git","ref":"0.2.0","commit":"485d300244787ad0415d5c5702febd57710833da","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.28.0"},"capabilities":["net"],"keywords":["gemini","google","llm","ai","chat"],"description":"A client for the Google Gemini API: generate content with tools, structured output and thinking, embeddings, files, context caching","publishedAt":"1795647541","repoId":1458227325,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/gemini\n\n[![test](https://github.com/deckyard/deck-gemini/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-gemini/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-gemini/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-gemini)](https://github.com/deckyard/deck-gemini/releases/latest)\n\nA client for the Google™ Gemini™ API as Google AI Studio serves it, for\n[Jennifer](https://jennifer-lang.dev/) programs: generate content from text\nand media with a system instruction, function calling and a tool loop that\nkeeps thought signatures, structured output, thinking and safety settings;\ncount tokens; embeddings; model listing; the Files API for large media;\ncontext caching. Requests and replies are Google's own JSON, every request\nhas a deadline and a reply cap, and rate limits are retried with backoff.\n\n**[Documentation](https://deckyard.github.io/deck-gemini/)**\n\n## Install\n\n```sh\njvc add @deckyard/gemini\n```\n\nThis vendors the deck to `vendor/@deckyard/gemini/`. Without `jvc`, unpack\nthe `src/` subtree of a release archive (`deckyard-gemini-\u003cversion\u003e.tar.gz`)\nthere.\n\n## Usage\n\n```jennifer\nimport \"@deckyard/gemini/\" as gemini;\nuse io;\nuse json;\nuse os;\n\ndef c as gemini.Client init gemini.client(os.getEnv(\"GEMINI_API_KEY\"));\ndef req as json.Value init gemini.newRequest(\"gemini-3.8-flash\");\n$req = gemini.withSystem($req, \"Answer in one sentence.\");\n$req = gemini.addUserText($req, \"Why is the sky blue?\");\nio.printf(\"%s\\n\", gemini.text(gemini.chat($c, $req)));\n```\n\nA key comes from [Google AI Studio](https://aistudio.google.com/apikey);\nthe free tier needs no billing account. The examples in `examples/` (a\nconversation, a tool loop, a file upload) read it from `GEMINI_API_KEY`.\n\n## Requirements\n\nJennifer 0.28.0 or newer, the default binary: the deck opens network\nconnections (capability `net`), so it does not load on `jennifer-tiny`.\nNo streaming yet (it waits for streaming `http`); no Vertex AI™ yet.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/gemini_test.j      # the test overlay, against a loopback fake\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Trademarks\n\nGoogle™, Gemini™ and Vertex AI™ are trademarks of Google LLC. Other product\nand company names may be trademarks of their respective owners. They are\nused only to identify the products this deck works with. This deck is an\nindependent project, not affiliated with, sponsored or endorsed by Google\nLLC.\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n"}