Skip to content

Commit 0de0cba

Browse files
ci: Version Packages (#644)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 65c917e commit 0de0cba

3 files changed

Lines changed: 21 additions & 20 deletions

File tree

.changeset/gemini-text-interactions.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/ai-gemini/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @tanstack/ai-gemini
22

3+
## 0.12.0
4+
5+
### Minor Changes
6+
7+
- feat(ai-gemini): add experimental `geminiTextInteractions()` adapter for Gemini's stateful Interactions API (Beta) ([#502](https://github.com/TanStack/ai/pull/502))
8+
9+
Routes through `client.interactions.create` instead of `client.models.generateContent`, so callers can pass `previous_interaction_id` via `modelOptions` and let the server retain conversation history. On each run, the returned interaction id is surfaced via an AG-UI `CUSTOM` event (`name: 'gemini.interactionId'`) emitted just before `RUN_FINISHED` — feed it back on the next turn via `modelOptions.previous_interaction_id`.
10+
11+
Exported from a dedicated `@tanstack/ai-gemini/experimental` subpath so the experimental status is load-bearing in your editor and bundle:
12+
13+
```ts
14+
import { geminiTextInteractions } from '@tanstack/ai-gemini/experimental'
15+
```
16+
17+
Scope: text/chat output with function tools, plus the built-in tools `google_search`, `code_execution`, `url_context`, `file_search`, and `computer_use`. Built-in tool activity is surfaced as AG-UI `CUSTOM` events named `gemini.googleSearchCall` / `gemini.googleSearchResult` (and the matching `codeExecutionCall`/`Result`, `urlContextCall`/`Result`, `fileSearchCall`/`Result` variants), carrying the raw Interactions delta payload. Function-tool `TOOL_CALL_*` events are unchanged, and `finishReason` stays `stop` when only built-in tools ran — the core chat loop has nothing to execute.
18+
19+
`google_search_retrieval`, `google_maps`, and `mcp_server` are not supported on this adapter and throw a targeted error explaining the alternative. Image/audio output via Interactions is also not routed through this adapter — use `geminiText()`, `geminiImage`, or `geminiSpeech` for those.
20+
21+
Marked `@experimental` — the underlying Interactions API is Beta and Google explicitly flags possible breaking changes.
22+
323
## 0.11.0
424

525
### Minor Changes

packages/ai-gemini/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/ai-gemini",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "Google Gemini adapter for TanStack AI chat, images, speech, audio generation, and structured outputs.",
55
"author": "",
66
"license": "MIT",

0 commit comments

Comments
 (0)