Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .changeset/fix-gemini-thought-signature-part-level.md

This file was deleted.

13 changes: 13 additions & 0 deletions examples/ts-svelte-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# ts-svelte-chat

## 0.1.41

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai-gemini@0.10.3
- @tanstack/ai@0.16.0
- @tanstack/ai-anthropic@0.8.6
- @tanstack/ai-client@0.9.1
- @tanstack/ai-ollama@0.6.13
- @tanstack/ai-openai@0.8.5
- @tanstack/ai-svelte@0.7.2

## 0.1.40

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-svelte-chat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-svelte-chat",
"private": true,
"version": "0.1.40",
"version": "0.1.41",
"type": "module",
"scripts": {
"dev": "vite dev --port 3000",
Expand Down
14 changes: 14 additions & 0 deletions examples/ts-vue-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# ts-vue-chat

## 0.1.41

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai-gemini@0.10.3
- @tanstack/ai@0.16.0
- @tanstack/ai-anthropic@0.8.6
- @tanstack/ai-client@0.9.1
- @tanstack/ai-ollama@0.6.13
- @tanstack/ai-openai@0.8.5
- @tanstack/ai-vue@0.7.2
- @tanstack/ai-vue-ui@0.1.33

## 0.1.40

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/ts-vue-chat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-vue-chat",
"version": "0.1.40",
"version": "0.1.41",
"private": true,
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions examples/vanilla-chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# vanilla-chat

## 0.0.37

### Patch Changes

- Updated dependencies []:
- @tanstack/ai-client@0.9.1

## 0.0.36

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vanilla-chat",
"private": true,
"type": "module",
"version": "0.0.36",
"version": "0.0.37",
"scripts": {
"start": "vite --port 3001",
"dev": "vite --port 3001",
Expand Down
7 changes: 7 additions & 0 deletions packages/typescript/ai-anthropic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-anthropic

## 0.8.6

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0

## 0.8.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-anthropic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-anthropic",
"version": "0.8.5",
"version": "0.8.6",
"description": "Anthropic Claude adapter for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-client

## 0.9.1

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0
- @tanstack/ai-event-client@0.3.0

## 0.9.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-client",
"version": "0.9.0",
"version": "0.9.1",
"description": "Framework-agnostic headless client for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-code-mode-skills/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-code-mode-skills

## 0.1.10

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0
- @tanstack/ai-code-mode@0.1.10

## 0.1.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode-skills/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode-skills",
"version": "0.1.9",
"version": "0.1.10",
"description": "Persistent skill library for TanStack AI Code Mode - LLM-created reusable code snippets",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/typescript/ai-code-mode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-code-mode

## 0.1.10

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0

## 0.1.9

### Patch Changes
Expand Down
15 changes: 15 additions & 0 deletions packages/typescript/ai-code-mode/models-eval/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @tanstack/ai-code-mode-models-eval

## 0.0.15

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai-gemini@0.10.3
- @tanstack/ai@0.16.0
- @tanstack/ai-anthropic@0.8.6
- @tanstack/ai-code-mode@0.1.10
- @tanstack/ai-grok@0.7.3
- @tanstack/ai-groq@0.1.11
- @tanstack/ai-ollama@0.6.13
- @tanstack/ai-openai@0.8.5
- @tanstack/ai-isolate-node@0.1.10

## 0.0.14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode/models-eval/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode-models-eval",
"version": "0.0.14",
"version": "0.0.15",
"private": true,
"type": "module",
"description": "Dev benchmark: local/cloud models vs code-mode database-demo gold (not published)",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-code-mode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode",
"version": "0.1.9",
"version": "0.1.10",
"description": "Code Mode for TanStack AI - LLM-driven code execution in secure sandboxes",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-devtools-core

## 0.3.27

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0
- @tanstack/ai-event-client@0.3.0

## 0.3.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-devtools-core",
"version": "0.3.26",
"version": "0.3.27",
"description": "Core TanStack AI Devtools",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-elevenlabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-elevenlabs

## 0.2.3

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0
- @tanstack/ai-client@0.9.1

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-elevenlabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-elevenlabs",
"version": "0.2.2",
"version": "0.2.3",
"description": "ElevenLabs adapter for TanStack AI realtime voice",
"author": "",
"license": "MIT",
Expand Down
28 changes: 28 additions & 0 deletions packages/typescript/ai-event-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @tanstack/ai-event-client

## 0.3.0

### Minor Changes

- fix(ai-gemini): read/write thoughtSignature at Part level + thread typed metadata through tool-call lifecycle ([#459](https://github.com/TanStack/ai/pull/459))

Two fixes shipped together because the adapter fix is only effective once the framework also preserves provider metadata across the tool-call round-trip.

**Adapter (Gemini):** Gemini emits `thoughtSignature` as a Part-level sibling of `functionCall` (per the `@google/genai` `Part` type definition), not nested inside `functionCall`. The `FunctionCall` type has never had a `thoughtSignature` property. The adapter was reading from `functionCall.thoughtSignature` (does not exist in SDK types) and writing it back nested inside `functionCall`, causing Gemini 3.x to reject subsequent tool-call turns with `400 INVALID_ARGUMENT: "Function call is missing a thought_signature"`.
- **Read side:** reads `part.thoughtSignature` directly using the SDK's typed `Part` interface
- **Write side:** emits `thoughtSignature` as a Part-level sibling of `functionCall`

**Framework (typed tool-call metadata):**
- `ToolCall.providerMetadata: Record<string, unknown>` is now `ToolCall<TMetadata>.metadata?: TMetadata`, mirroring the existing typed-metadata pattern on content parts (`ImagePart<TMetadata>`, `AudioPart<TMetadata>`, etc.).
- `ToolCallPart` gains a typed `metadata?: TMetadata` field (also generic).
- `ToolCallStartEvent.providerMetadata` becomes `metadata` (kept as `Record<string, unknown>` because the AGUIEvent discriminated union does not survive a generic on the event type; adapters cast to their typed shape when emitting).
- `BaseTextAdapter` and `TextAdapter` gain a sixth generic `TToolCallMetadata` (default `unknown`), exposed via `~types.toolCallMetadata` for inference at call sites.
- `InternalToolCallState` gains a `metadata?: Record<string, unknown>` field captured at `TOOL_CALL_START` and threaded through `updateToolCallPart`, `buildAssistantMessages`, `modelMessageToUIMessage`, and `completeToolCall`, fixing a previously-silent drop of provider metadata across the client-side UIMessage pipeline (closes the gap surfaced in #403/#404).

**Gemini concrete impl:** new `GeminiToolCallMetadata { thoughtSignature?: string }` exported from `@tanstack/ai-gemini`. The adapter declares its `TToolCallMetadata` as this type, so consumers see `toolCall.metadata?.thoughtSignature` typed end-to-end.

**Breaking:** consumers reading `toolCall.providerMetadata` or `toolCallStartEvent.providerMetadata` should rename to `metadata`.

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0

## 0.2.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-event-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-event-client",
"version": "0.2.9",
"version": "0.3.0",
"description": "Event client for TanStack AI devtools integration",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/typescript/ai-fal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-fal

## 0.7.3

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0

## 0.7.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-fal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-fal",
"version": "0.7.2",
"version": "0.7.3",
"description": "fal.ai adapter for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
26 changes: 26 additions & 0 deletions packages/typescript/ai-gemini/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @tanstack/ai-gemini

## 0.10.3

### Patch Changes

- fix(ai-gemini): read/write thoughtSignature at Part level + thread typed metadata through tool-call lifecycle ([#459](https://github.com/TanStack/ai/pull/459))

Two fixes shipped together because the adapter fix is only effective once the framework also preserves provider metadata across the tool-call round-trip.

**Adapter (Gemini):** Gemini emits `thoughtSignature` as a Part-level sibling of `functionCall` (per the `@google/genai` `Part` type definition), not nested inside `functionCall`. The `FunctionCall` type has never had a `thoughtSignature` property. The adapter was reading from `functionCall.thoughtSignature` (does not exist in SDK types) and writing it back nested inside `functionCall`, causing Gemini 3.x to reject subsequent tool-call turns with `400 INVALID_ARGUMENT: "Function call is missing a thought_signature"`.
- **Read side:** reads `part.thoughtSignature` directly using the SDK's typed `Part` interface
- **Write side:** emits `thoughtSignature` as a Part-level sibling of `functionCall`

**Framework (typed tool-call metadata):**
- `ToolCall.providerMetadata: Record<string, unknown>` is now `ToolCall<TMetadata>.metadata?: TMetadata`, mirroring the existing typed-metadata pattern on content parts (`ImagePart<TMetadata>`, `AudioPart<TMetadata>`, etc.).
- `ToolCallPart` gains a typed `metadata?: TMetadata` field (also generic).
- `ToolCallStartEvent.providerMetadata` becomes `metadata` (kept as `Record<string, unknown>` because the AGUIEvent discriminated union does not survive a generic on the event type; adapters cast to their typed shape when emitting).
- `BaseTextAdapter` and `TextAdapter` gain a sixth generic `TToolCallMetadata` (default `unknown`), exposed via `~types.toolCallMetadata` for inference at call sites.
- `InternalToolCallState` gains a `metadata?: Record<string, unknown>` field captured at `TOOL_CALL_START` and threaded through `updateToolCallPart`, `buildAssistantMessages`, `modelMessageToUIMessage`, and `completeToolCall`, fixing a previously-silent drop of provider metadata across the client-side UIMessage pipeline (closes the gap surfaced in #403/#404).

**Gemini concrete impl:** new `GeminiToolCallMetadata { thoughtSignature?: string }` exported from `@tanstack/ai-gemini`. The adapter declares its `TToolCallMetadata` as this type, so consumers see `toolCall.metadata?.thoughtSignature` typed end-to-end.

**Breaking:** consumers reading `toolCall.providerMetadata` or `toolCallStartEvent.providerMetadata` should rename to `metadata`.

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0

## 0.10.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-gemini/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-gemini",
"version": "0.10.2",
"version": "0.10.3",
"description": "Google Gemini adapter for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/typescript/ai-grok/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-grok

## 0.7.3

### Patch Changes

- Updated dependencies [[`87f305c`](https://github.com/TanStack/ai/commit/87f305c9961d608fd7bea93a5100698a98aed11d)]:
- @tanstack/ai@0.16.0
- @tanstack/openai-base@0.2.1

## 0.7.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/ai-grok/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-grok",
"version": "0.7.2",
"version": "0.7.3",
"description": "Grok (xAI) adapter for TanStack AI",
"author": "",
"license": "MIT",
Expand Down
Loading