Skip to content

Latest commit

 

History

History
255 lines (157 loc) · 9.85 KB

File metadata and controls

255 lines (157 loc) · 9.85 KB

@tanstack/ai-react

0.7.6

Patch Changes

  • Updated dependencies [26d8243]:
    • @tanstack/ai@0.9.2
    • @tanstack/ai-client@0.7.5

0.7.5

Patch Changes

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

0.7.4

Patch Changes

  • Update messagesRef synchronously during render instead of in useEffect to prevent stale messages when ChatClient is recreated (#373)

0.7.3

Patch Changes

  • Updated dependencies [842e119]:
    • @tanstack/ai@0.9.0
    • @tanstack/ai-client@0.7.3

0.7.2

Patch Changes

  • Add an explicit subscription lifecycle to ChatClient with subscribe()/unsubscribe(), isSubscribed, connectionStatus, and sessionGenerating, while keeping request lifecycle state separate from long-lived connection state for durable chat sessions. (#356)

    Update the React, Preact, Solid, Svelte, and Vue chat bindings with live mode plus reactive subscription/session state, and improve StreamProcessor handling for concurrent runs and reconnects so active sessions do not finalize early or duplicate resumed assistant messages.

  • Add durable subscribe()/send() transport support to ChatClient while preserving compatibility with existing connect() adapters. This also introduces shared generation clients for one-shot streaming tasks and updates the framework wrappers to use the new generation transport APIs. (#286)

    Improve core stream processing to better handle concurrent runs and resumed streams so shared sessions stay consistent during reconnects and overlapping generations.

  • Updated dependencies [64b9cba, dc53e1b]:

    • @tanstack/ai@0.8.1
    • @tanstack/ai-client@0.7.2

0.7.1

Patch Changes

  • Updated dependencies [f62eeb0]:
    • @tanstack/ai@0.8.0
    • @tanstack/ai-client@0.7.1

0.7.0

Minor Changes

  • feat: add realtime voice chat with OpenAI and ElevenLabs adapters (#300)

    Adds realtime voice/text chat capabilities:

    • @tanstack/ai: realtimeToken() function and shared realtime types (RealtimeToken, RealtimeMessage, RealtimeSessionConfig, RealtimeStatus, RealtimeMode, AudioVisualization, events, and error types)
    • @tanstack/ai-client: Framework-agnostic RealtimeClient class with connection lifecycle, audio I/O, message state management, tool execution, and RealtimeAdapter/RealtimeConnection interfaces
    • @tanstack/ai-openai: openaiRealtime() client adapter (WebRTC) and openaiRealtimeToken() server token adapter with support for semantic VAD, multiple voices, and all realtime models
    • @tanstack/ai-elevenlabs: elevenlabsRealtime() client adapter (WebSocket) and elevenlabsRealtimeToken() server token adapter for ElevenLabs conversational AI agents
    • @tanstack/ai-react: useRealtimeChat() hook with reactive state for status, mode, messages, pending transcripts, audio visualization levels, VAD control, text/image input, and interruptions
    • Docs: Realtime Voice Chat guide and full API reference for all realtime classes, interfaces, functions, and type aliases

Patch Changes

  • Updated dependencies [86be1c8]:
    • @tanstack/ai@0.7.0
    • @tanstack/ai-client@0.7.0

0.6.4

Patch Changes

  • feat: pass abort signal to generation fetchers and extract GenerationFetcher utility type (#327)

    • Generation clients now forward an AbortSignal to fetcher functions via an optional options parameter, enabling cancellation support when stop() is called
    • Introduced GenerationFetcher<TInput, TResult> utility type in @tanstack/ai-client to centralize the fetcher function signature across all framework integrations
    • All framework hooks/composables (React, Solid, Vue, Svelte) now use the shared GenerationFetcher type instead of inline definitions
  • Updated dependencies [6dfffca, 6dfffca]:

    • @tanstack/ai@0.6.3
    • @tanstack/ai-client@0.6.0

0.6.3

Patch Changes

  • Updated dependencies [2ee0b33]:
    • @tanstack/ai@0.6.2
    • @tanstack/ai-client@0.5.3

0.6.2

Patch Changes

  • Updated dependencies [4fe31d4]:
    • @tanstack/ai-client@0.5.2

0.6.1

Patch Changes

  • Updated dependencies [d8678e2]:
    • @tanstack/ai@0.6.1
    • @tanstack/ai-client@0.5.1

0.6.0

Patch Changes

  • feat: add custom event dispatch support for tools (#293)

    Tools can now emit custom events during execution via dispatchEvent(). Custom events are streamed to clients as custom_event stream chunks and surfaced through the client chat hook's onCustomEvent callback. This enables tools to send progress updates, intermediate results, or any structured data back to the UI during long-running operations.

  • Updated dependencies [5aa6acc, 1f800aa]:

    • @tanstack/ai@0.6.0
    • @tanstack/ai-client@0.5.0

0.5.4

Patch Changes

  • Updated dependencies [58702bc]:
    • @tanstack/ai@0.5.1
    • @tanstack/ai-client@0.4.5

0.5.3

Patch Changes

  • Updated dependencies [5d98472, 5d98472]:
    • @tanstack/ai@0.5.0
    • @tanstack/ai-client@0.4.4

0.5.2

Patch Changes

  • Updated dependencies [6f886e9]:
    • @tanstack/ai@0.4.2
    • @tanstack/ai-client@0.4.3

0.5.1

Patch Changes

  • Updated dependencies [6e1bb50]:
    • @tanstack/ai@0.4.1
    • @tanstack/ai-client@0.4.2

0.5.0

Minor Changes

  • add multiple modalities support to the client (#263)

Patch Changes

  • Updated dependencies [0158d14]:
    • @tanstack/ai@0.4.0
    • @tanstack/ai-client@0.4.1

0.4.0

Minor Changes

  • Added status property to useChat to track the generation lifecycle (ready, submitted, streaming, error) (#247)

Patch Changes

  • Updated dependencies [99ccee5, 230bab6]:
    • @tanstack/ai-client@0.4.0
    • @tanstack/ai@0.3.1

0.3.0

Patch Changes

  • Updated dependencies [e52135f]:
    • @tanstack/ai@0.3.0
    • @tanstack/ai-client@0.3.0

0.2.2

Patch Changes

  • Updated dependencies [7573619]:
    • @tanstack/ai@0.2.2
    • @tanstack/ai-client@0.2.2

0.2.1

Patch Changes

  • fix up readmes (#188)

  • Updated dependencies [181e0ac, 181e0ac]:

    • @tanstack/ai@0.2.1
    • @tanstack/ai-client@0.2.1

0.2.0

Minor Changes

  • Standard schema / standard json schema support for TanStack AI (#165)

Patch Changes

  • Updated dependencies [c5df33c]:
    • @tanstack/ai-client@0.2.0
    • @tanstack/ai@0.2.0

0.1.0

Minor Changes

  • Split up adapters for better tree shaking into separate functionalities (#137)

Patch Changes

  • Updated dependencies [8d77614]:
    • @tanstack/ai@0.1.0
    • @tanstack/ai-client@0.1.0

0.0.3

Patch Changes

  • Updated dependencies [52c3172]:
    • @tanstack/ai@0.0.3
    • @tanstack/ai-client@0.0.3

0.0.2

Patch Changes

  • Updated dependencies [a7bd563, 64fda55]:
    • @tanstack/ai-client@0.0.2
    • @tanstack/ai@0.0.2

0.0.1

Patch Changes

  • Initial release of TanStack AI (#72)

  • Updated dependencies [a9b54c2]:

    • @tanstack/ai-client@0.0.1
    • @tanstack/ai@0.0.1