AG-UI Support #244
- docs/protocol/chunk-definitions.md lines 2 to 41Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -27,5 +26,16 @@27-type StreamChunkType =28- | 'content' // Text content being generated29- | 'thinking' // Model's reasoning process (when supported)30- | 'tool_call' // Model calling a tool/function31- | 'tool-input-available' // Tool inputs are ready for client execution26+type AGUIEventType =27+ | 'RUN_STARTED' // Run lifecycle begins28+ | 'RUN_FINISHED' // Run completed successfully29+ | 'RUN_ERROR' // Error occurred30+ | 'TEXT_MESSAGE_START' // Text message begins31+ | 'TEXT_MESSAGE_CONTENT' // Text content streaming32+ | 'TEXT_MESSAGE_END' // Text message completes33+ | 'TOOL_CALL_START' // Tool invocation begins34+ | 'TOOL_CALL_ARGS' // Tool arguments streaming35+ | 'TOOL_CALL_END' // Tool call completes (with result)36+ | 'STEP_STARTED' // Thinking/reasoning step begins37+ | 'STEP_FINISHED' // Thinking/reasoning step completes38+ | 'STATE_SNAPSHOT' // Full state synchronization39+ | 'STATE_DELTA' // Incremental state update40+ | 'CUSTOM'; // Custom extensibility events41+```@@ -122 +243,21 @@122243 }244+245+ // Parse input and emit TOOL_CALL_END246+ $parsedInput = [];247+ if (!empty($toolCall['input'])) {248+ try {249+ $parsedInput = json_decode($toolCall['input'], true) ?? [];250+ } catch (\Exception $e) {251+ $parsedInput = [];252+ }253+ }254+255+ $chunks[] = [256+ 'type' => 'TOOL_CALL_END',257+ 'toolCallId' => $toolCall['id'],258+ 'toolName' => $toolCall['name'],259+ 'model' => $this->model,260+ 'timestamp' => $this->timestamp,261+ 'input' => $parsedInput262+ ];263+ }@@ -217,8 +239,17 @@239+ yield {240+ type: 'STEP_STARTED',241+ stepId,242+ model,243+ timestamp,244+ stepType: 'thinking',245+ }246+ }247+217248 yield {218- type: 'thinking',219- content: part.text,220- delta: part.text,221- id: generateId(this.name),249+ type: 'STEP_FINISHED',250+ stepId: stepId || generateId(this.name),222251 model,223252 timestamp,253+ delta: part.text,254+ content: part.text,224255 }@@ -265,10 +328,18 @@328+ type: 'STEP_STARTED',329+ stepId,330+ model: chunk.model,331+ timestamp,332+ stepType: 'thinking',333+ }334+ }335+265336 accumulatedReasoning += chunk.message.thinking266337 yield {267- type: 'thinking',268- id: responseId,338+ type: 'STEP_FINISHED',339+ stepId: stepId || generateId('step'),269340 model: chunk.model,270341 timestamp,271- content: accumulatedReasoning,272342 delta: chunk.message.thinking,343+ content: accumulatedReasoning,273344 }274345 }@@ -66,7 +67,21 @@6667 summary = chunk.content6768 id = chunk.id6869 model = chunk.model6970 }71+ // AG-UI TEXT_MESSAGE_CONTENT event72+ else if (chunk.type === 'TEXT_MESSAGE_CONTENT') {73+ if (chunk.content) {74+ summary = chunk.content75+ } else {76+ summary += chunk.delta77+ }78+ model = chunk.model || model79+ }80+ // Legacy done event7081 if (chunk.type === 'done' && chunk.usage) {7182 usage = chunk.usage7283 }84+ // AG-UI RUN_FINISHED event85+ else if (chunk.type === 'RUN_FINISHED' && chunk.usage) {86+ usage = chunk.usage87+ }@@ -547,3 +577,13 @@547577 })548578 }549579580+ // ===========================581+ // AG-UI Event Handlers582+ // ===========================583+584+ private handleTextMessageContentEvent(chunk: TextMessageContentEvent): void {585+ if (chunk.content) {586+ this.accumulatedContent = chunk.content587+ } else {588+ this.accumulatedContent += chunk.delta589+ }@@ -26,5 +26,8 @@2626 let accumulatedContent = ''27272828 for await (const chunk of stream) {29- if (chunk.type === 'content' && chunk.delta) {29+ // Handle both AG-UI TEXT_MESSAGE_CONTENT and legacy 'content' chunks30+ if (chunk.type === 'TEXT_MESSAGE_CONTENT' && chunk.delta) {31+ accumulatedContent += chunk.delta32+ } else if (chunk.type === 'content' && chunk.delta) {3033 accumulatedContent += chunk.delta@@ -243,0 +306,21 @@306+ name,307+ arguments: args,308+ })309+310+ // Add to assistant draft311+ if (!assistantDraft) {312+ assistantDraft = { role: 'assistant', content: null, toolCalls: [] }313+ }314+ assistantDraft.toolCalls?.push({315+ id,316+ type: 'function',317+ function: {318+ name,319+ arguments: args,320+ },321+ })322+323+ chunkData.toolCallId = chunk.toolCallId324+ chunkData.toolName = chunk.toolName325+ chunkData.input = chunk.input326+ }
- @@ -62,8 +62,18 @@6262 maxTokens: options.maxLength,6363 temperature: 0.3,6464 })) {65+ // Legacy content event6566 if (chunk.type === 'content') {6667 summary = chunk.content6768 id = chunk.id6869 model = chunk.model6970 }71+ // AG-UI TEXT_MESSAGE_CONTENT event72+ else if (chunk.type === 'TEXT_MESSAGE_CONTENT') {73+ if (chunk.content) {74+ summary = chunk.content75+ } else {76+ summary += chunk.delta77+ }78+ model = chunk.model || model79+ }@@ -70,8 +70,18 @@7070 maxTokens: this.maxTokens ?? options.maxLength,7171 temperature: this.temperature,7272 })) {73+ // Legacy content event7374 if (chunk.type === 'content') {7475 summary = chunk.content7576 id = chunk.id7677 model = chunk.model7778 }79+ // AG-UI TEXT_MESSAGE_CONTENT event80+ else if (chunk.type === 'TEXT_MESSAGE_CONTENT') {81+ if (chunk.content) {82+ summary = chunk.content83+ } else {84+ summary += chunk.delta85+ }86+ model = chunk.model || model87+ }@@ -314,9 +441,18 @@314- type: 'error',315- ...meta,441+ type: 'RUN_ERROR',442+ runId: aguiState.runId,443+ model: meta.model,444+ timestamp: meta.timestamp,316445 error: { message: delta.refusal, code: 'refusal' },317446 }318447 }319448320449 if (finishReason) {321450 if (finishReason === 'tool_calls') {322- for (const [index, tc] of toolCallBuffers.entries()) {451+ for (const [, tc] of toolCallBuffers.entries()) {452+ // Parse arguments for TOOL_CALL_END453+ let parsedInput: unknown = {}454+ try {455+ parsedInput = tc.arguments ? JSON.parse(tc.arguments) : {}456+ } catch {457+ parsedInput = {}458+ }@@ -374,0 +419,21 @@419+ },420+ },421+ ]422+423+ setupMockSdkClient(streamChunks)424+ const adapter = createAdapter()425+ const chunks: Array<StreamChunk> = []426+427+ for await (const chunk of adapter.chatStream({428+ model: 'openai/gpt-4o-mini',429+ messages: [{ role: 'user', content: 'Hello' }],430+ })) {431+ chunks.push(chunk)432+ }433+434+ expect(chunks[0]?.type).toBe('RUN_STARTED')435+ if (chunks[0]?.type === 'RUN_STARTED') {436+ expect(chunks[0].runId).toBeDefined()437+ expect(chunks[0].model).toBe('openai/gpt-4o-mini')438+ }439+ })
- @@ -359,9 +275,17 @@275+ TEXT_MESSAGE_CONTENT (delta: " world")276+ TEXT_MESSAGE_CONTENT (delta: "!")277+ TEXT_MESSAGE_END278+ RUN_FINISHED (finishReason: "stop")359279 ```360280361281 **With Thinking:**362282 ```363- ThinkingStreamChunk (delta: "I need to...")364- ThinkingStreamChunk (delta: " check the weather")365- ContentStreamChunk (delta: "Let me check")366- DoneStreamChunk (finishReason: "stop")283+ RUN_STARTED284+ STEP_STARTED (stepType: "thinking")285+ STEP_FINISHED (delta: "I need to...")286+ STEP_FINISHED (delta: " check the weather")287+ TEXT_MESSAGE_START288+ TEXT_MESSAGE_CONTENT (delta: "Let me check")289+ TEXT_MESSAGE_END290+ RUN_FINISHED (finishReason: "stop")367291 ```@@ -367,9 +286,17 @@286+ STEP_FINISHED (delta: " check the weather")287+ TEXT_MESSAGE_START288+ TEXT_MESSAGE_CONTENT (delta: "Let me check")289+ TEXT_MESSAGE_END290+ RUN_FINISHED (finishReason: "stop")367291 ```368292369293 **Tool Usage:**370294 ```371- ToolCallStreamChunk (name: "get_weather")372- ToolResultStreamChunk (content: "{...}")373- ContentStreamChunk (delta: "The weather is...")374- DoneStreamChunk (finishReason: "stop")295+ RUN_STARTED296+ TOOL_CALL_START (name: "get_weather")297+ TOOL_CALL_ARGS / TOOL_CALL_END (result: "{...}")298+ TEXT_MESSAGE_START299+ TEXT_MESSAGE_CONTENT (delta: "The weather is...")300+ TEXT_MESSAGE_END301+ RUN_FINISHED (finishReason: "stop")375302 ```@@ -375,13 +302,15 @@375302 ```376303377304 **Client Tool with Approval:**378305 ```379- ToolCallStreamChunk (name: "send_email")380- ApprovalRequestedStreamChunk (toolName: "send_email")306+ RUN_STARTED307+ TOOL_CALL_START (name: "send_email")308+ TOOL_CALL_ARGS / TOOL_CALL_END309+ CUSTOM (name: "approval-requested")381310 [User approves]382- ToolInputAvailableStreamChunk (toolName: "send_email")383311 [Client executes]384- ToolResultStreamChunk (content: "{\"sent\":true}")385- ContentStreamChunk (delta: "Email sent successfully")386- DoneStreamChunk (finishReason: "stop")312+ TEXT_MESSAGE_START313+ TEXT_MESSAGE_CONTENT (delta: "Email sent successfully")314+ TEXT_MESSAGE_END315+ RUN_FINISHED (finishReason: "stop")387316 ```@@ -389,12 +318,15 @@389318 ### Multiple Tool Calls390319391320 When the model calls multiple tools in parallel:392321393322 ```394-ToolCallStreamChunk (index: 0, name: "get_weather")395-ToolCallStreamChunk (index: 1, name: "get_time")396-ToolResultStreamChunk (toolCallId: "call_1")397-ToolResultStreamChunk (toolCallId: "call_2")398-ContentStreamChunk (delta: "Based on the data...")399-DoneStreamChunk (finishReason: "stop")323+RUN_STARTED324+TOOL_CALL_START (index: 0, name: "get_weather")325+TOOL_CALL_START (index: 1, name: "get_time")326+TOOL_CALL_END (toolCallId: "call_1", result: "...")327+TOOL_CALL_END (toolCallId: "call_2", result: "...")328+TEXT_MESSAGE_START329+TEXT_MESSAGE_CONTENT (delta: "Based on the data...")330+TEXT_MESSAGE_END331+RUN_FINISHED (finishReason: "stop")400332 ```@@ -109 +134,21 @@134+# ============================================================================135+136+137+class BaseAGUIEvent(TypedDict, total=False):138+ """Base structure for AG-UI events."""139+140+ type: AGUIEventType109141 timestamp: int # Unix timestamp in milliseconds142+ model: Optional[str]143+ rawEvent: Optional[Any]144+145+146+class RunStartedEvent(TypedDict):147+ """Emitted when a run starts. This is the first event in any streaming response."""148+149+ type: Literal["RUN_STARTED"]150+ runId: str151+ timestamp: int152+ model: Optional[str]153+ threadId: Optional[str]154+@@ -111,9 +170,16 @@170+ type: Literal["RUN_ERROR"]171+ runId: Optional[str]172+ timestamp: int173+ model: Optional[str]174+ error: ErrorInfo111175112-class ContentStreamChunk(BaseStreamChunk):113- """Emitted when the model generates text content."""114176115- delta: str # The incremental content token116- content: str # Full accumulated content so far117- role: Optional[Literal["assistant"]]177+class TextMessageStartEvent(TypedDict):178+ """Emitted when a text message starts."""118179180+ type: Literal["TEXT_MESSAGE_START"]181+ messageId: str182+ timestamp: int183+ model: Optional[str]184+ role: Literal["assistant"]119185@@ -125,8 +189,17 @@189+190+ type: Literal["TEXT_MESSAGE_CONTENT"]191+ messageId: str192+ timestamp: int193+ model: Optional[str]194+ delta: str195+ content: Optional[str]125196126197127-class ToolCallStreamChunk(BaseStreamChunk):128- """Emitted when the model decides to call a tool/function."""198+class TextMessageEndEvent(TypedDict):199+ """Emitted when a text message completes."""129200130- toolCall: ToolCall131- index: int # Index of this tool call (for parallel calls)201+ type: Literal["TEXT_MESSAGE_END"]202+ messageId: str203+ timestamp: int204+ model: Optional[str]132205@@ -175,8 +262,17 @@262+class StateSnapshotEvent(TypedDict):263+ """Emitted to provide a full state snapshot."""175264176- message: str177- code: Optional[str]265+ type: Literal["STATE_SNAPSHOT"]266+ timestamp: int267+ model: Optional[str]268+ state: Dict[str, Any]178269179270180-class ErrorStreamChunk(BaseStreamChunk):181- """Emitted when an error occurs during streaming."""271+class StateDeltaEvent(TypedDict):272+ """Emitted to provide an incremental state update."""273+274+ type: Literal["STATE_DELTA"]275+ timestamp: int276+ model: Optional[str]277+ delta: Dict[str, Any]182278@@ -212,13 +207,10 @@207+ if (!assistantDraft) {208+ assistantDraft = {209+ role: 'assistant',210+ content: chunk.content || '',211+ toolCalls: [],212212 }213+ } else {214+ assistantDraft.content = (assistantDraft.content || '') + delta213215 }214- } else if (chunk.type === 'tool_call') {215- const id = chunk.toolCall.id216- const existing = toolCallMap.get(id) || {217- id,218- name: chunk.toolCall.function.name,219- arguments: '',220- }221- existing.arguments += chunk.toolCall.function.arguments || ''222- toolCallMap.set(id, existing)223-224- chunkData.toolCall = chunk.toolCall216+ }@@ -242,12 +233,11 @@233+ else if (chunk.type === 'TOOL_CALL_ARGS') {234+ const id = chunk.toolCallId235+ const existing = toolCallsInProgress.get(id)236+ if (existing) {237+ existing.args = chunk.args || existing.args + (chunk.delta || '')242238 }243- } else if (chunk.type === 'tool_result') {239+244240 chunkData.toolCallId = chunk.toolCallId245- chunkData.content = chunk.content246- toolResults.push({247- toolCallId: chunk.toolCallId,248- content: chunk.content,249- })250- reconstructedMessages.push({251- role: 'tool',252- toolCallId: chunk.toolCallId,253- content: chunk.content,241+ chunkData.delta = chunk.delta242+ chunkData.args = chunk.args243+ }@@ -1,3 +1,4 @@1-import { useState } from 'react'1+import { useState, useMemo } from 'react'22 import { createFileRoute } from '@tanstack/react-router'33 import { useChat, fetchServerSentEvents } from '@tanstack/ai-react'4+import type { UIMessage } from '@tanstack/ai-client'@@ -0,0 +1,19 @@1+import { useMemo, useState } from 'react'2+import { createFileRoute, useSearch } from '@tanstack/react-router'3+import { useChat, fetchServerSentEvents } from '@tanstack/ai-react'4+import type { UIMessage } from '@tanstack/ai-client'5+6+type MockScenario =7+ | 'simple-text'8+ | 'tool-call'9+ | 'multi-tool'10+ | 'text-tool-text'11+ | 'error'12+13+const VALID_SCENARIOS: MockScenario[] = [14+ 'simple-text',15+ 'tool-call',16+ 'multi-tool',17+ 'text-tool-text',18+ 'error',19+]@@ -1 +1 @@1-import { test, expect } from '@playwright/test'1+import { test, expect, Page } from '@playwright/test'
- @@ -0,0 +1,9 @@1+---2+'@tanstack/ai': minor3+'@tanstack/ai-client': minor4+'@tanstack/ai-openai': minor5+'@tanstack/ai-anthropic': minor6+'@tanstack/ai-gemini': minor7+'@tanstack/ai-grok': minor8+'@tanstack/ai-ollama': minor9+'@tanstack/ai-openrouter': minor@@ -0,0 +1,19 @@1+---2+'@tanstack/ai': minor3+'@tanstack/ai-client': minor4+'@tanstack/ai-openai': minor5+'@tanstack/ai-anthropic': minor6+'@tanstack/ai-gemini': minor7+'@tanstack/ai-grok': minor8+'@tanstack/ai-ollama': minor9+'@tanstack/ai-openrouter': minor10+---11+12+feat: Add AG-UI protocol events to streaming system13+14+All text adapters now emit AG-UI protocol events only:15+16+`RUN_STARTED` / `RUN_FINISHED` - Run lifecycle events17+`TEXT_MESSAGE_START` / `TEXT_MESSAGE_CONTENT` / `TEXT_MESSAGE_END` - Text message streaming18+`TOOL_CALL_START` / `TOOL_CALL_ARGS` / `TOOL_CALL_END` - Tool call streaming19+@@ -0,0 +14,21 @@14+import * as fs from 'node:fs'15+import * as path from 'node:path'16+17+// Static paths for .env.local files18+const STATIC_ENV_LOCAL_PATHS = [19+ 'testing/panel/.env.local',20+ 'packages/typescript/smoke-tests/e2e/.env.local',21+ 'packages/typescript/smoke-tests/adapters/.env.local',22+ 'packages/typescript/ai-code-mode/.env.local',23+ 'packages/typescript/ai-anthropic/live-tests/.env.local',24+ 'packages/typescript/ai-openai/live-tests/.env.local',25+]26+27+/**28+ * Dynamically find all .env and .env.local files in the examples directory29+ */30+function findExampleEnvFiles(projectRoot: string): string[] {31+ const examplesDir = path.join(projectRoot, 'examples')32+ if (!fs.existsSync(examplesDir)) return []33+34+ const envFiles: string[] = []@@ -67,10 +87,18 @@67- adapter: geminiText((model || 'gemini-2.0-flash-exp') as any),87+ adapter: geminiText(actualModel as any),88+ }),89+ grok: () =>90+ createChatOptions({91+ adapter: grokText(actualModel as any),6892 }),6993 ollama: () =>7094 createChatOptions({71- adapter: ollamaText((model || 'mistral:7b') as any),95+ adapter: ollamaText(actualModel as any),7296 }),7397 openai: () =>7498 createChatOptions({75- adapter: openaiText((model || 'gpt-4o') as any),99+ adapter: openaiText(actualModel as any),100+ }),101+ openrouter: () =>102+ createChatOptions({103+ adapter: openRouterText(actualModel as any),76104 }),testing/panel/src/routes/api.summarize.ts lines 31 to 74Resolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -37,10 +57,18 @@37- adapter: geminiSummarize((model || 'gemini-2.0-flash') as any),57+ adapter: geminiSummarize(actualModel as any),58+ }),59+ grok: () =>60+ createSummarizeOptions({61+ adapter: grokSummarize(actualModel as any),3862 }),3963 ollama: () =>4064 createSummarizeOptions({41- adapter: ollamaSummarize(model || 'mistral:7b'),65+ adapter: ollamaSummarize(actualModel),4266 }),4367 openai: () =>4468 createSummarizeOptions({45- adapter: openaiSummarize(model || 'gpt-4o-mini'),69+ adapter: openaiSummarize(actualModel as any),70+ }),71+ openrouter: () =>72+ createSummarizeOptions({73+ adapter: openRouterSummarize(actualModel as any),4674 }),
AlemTuzlak reviewed
@@ -582,18 +499,9 @@582-583- // Emit initial delta584- if (chunk.toolCall.function.arguments) {585- this.handlers.onToolCallDelta?.(586- actualIndex,587- chunk.toolCall.function.arguments,588- )589- }590-591499 // Update UIMessage592500 if (this.currentAssistantMessageId) {593501 this.messages = updateToolCallPart(594502 this.messages,595503 this.currentAssistantMessageId,596504 {597- id: chunk.toolCall.id,598- name: chunk.toolCall.function.name,599- arguments: chunk.toolCall.function.arguments || '',505+ id: chunk.toolCallId,506+ name: chunk.toolName,507+ arguments: '',AlemTuzlak reviewed
@@ -792,10 +675,13 @@675+ toolCallId,676+ toolName,677+ input,678+ })792679 }793680794- // Emit new event795- this.events.onApprovalRequest?.({796- toolCallId: chunk.toolCallId,797- toolName: chunk.toolName,798- input: chunk.input,799- approvalId: chunk.approval.id,800- })801- }681+ // Handle approval requests682+ if (chunk.name === 'approval-requested' && chunk.data) {683+ const { toolCallId, toolName, input, approval } = chunk.data as {684+ toolCallId: string685+ toolName: string686+ input: any687+ approval: { id: string; needsApproval: boolean }AlemTuzlak reviewed
@@ -769,13 +657,11 @@769657 /**770- * Handle an approval-requested chunk658+ * Handle CUSTOM event659+ * Handles special custom events like 'tool-input-available' for client-side tool execution660+ * and 'approval-requested' for tool approval flows771661 */772- private handleApprovalRequestedChunk(773- chunk: Extract<StreamChunk, { type: 'approval-requested' }>,662+ private handleCustomEvent(663+ chunk: Extract<StreamChunk, { type: 'CUSTOM' }>,774664 ): void {775- // Emit legacy handler776- this.handlers.onApprovalRequested?.(777- chunk.toolCallId,778- chunk.toolName,779- chunk.input,780- chunk.approval.id,781- )665+ // Handle client tool input availability - trigger client-side execution666+ if (chunk.name === 'tool-input-available' && chunk.data) {667+ const { toolCallId, toolName, input } = chunk.data as {AlemTuzlak approved these changes
- @@ -38,3 +38,11 @@3838 },3939 })404041+ // Sync body changes to the client42+ // This allows dynamic body values (like model selection) to be updated without recreating the client43+ watch(44+ () => options.body,45+ (newBody) => {46+ client.updateOptions({ body: newBody })47+ },48+ )
jherr merged thise52135f
jherr closed this
Sign in to join this conversation.
📝 Walkthrough
Walkthrough#
Streaming and adapters were migrated to the AG‑UI Protocol: streams now emit RUN_STARTED, RUN_FINISHED, RUN_ERROR, TEXT_MESSAGE_/TOOL_CALL_/STEP_* and state/custom events with run/message/step IDs; types, converters, SSE/formatters, adapters, processors, tests, examples, and tooling updated; legacy chunk formats removed.
Changes#
\.changeset/ag-ui-events.md,docs/guides/streaming.md,docs/protocol/chunk-definitions.mdpackages/typescript/ai/src/types.ts,packages/python/tanstack-ai/src/tanstack_ai/types.py,packages/python/tanstack-ai/src/tanstack_ai/__init__.pypackages/typescript/ai-openai/...,packages/typescript/ai-anthropic/...,packages/typescript/ai-gemini/...,packages/typescript/ai-ollama/...,packages/typescript/ai-grok/...,packages/typescript/ai-openrouter/...,packages/python/.../anthropic_adapter.py,packages/php/tanstack-ai/src/StreamChunkConverter.phppackages/php/.../StreamChunkConverter.php,packages/python/.../converter.pypackages/python/.../sse.py,packages/php/tanstack-ai/src/SSEFormatter.phppackages/typescript/ai/src/activities/chat/...,packages/typescript/ai/src/activities/chat/tools/tool-calls.ts,packages/typescript/ai/src/activities/chat/stream/*,packages/python/tanstack-ai/src/tanstack_ai/chat.py,packages/python/tanstack-ai/src/tanstack_ai/tool_manager.pypackages/typescript/ai/src/stream-to-response.ts,packages/typescript/ai-*/src/adapters/summarize.ts,packages/typescript/ai-openrouter/src/adapters/summarize.tspackages/typescript/*/tests/*,packages/typescript/smoke-tests/*,packages/typescript/smoke-tests/e2e/src/*examples/ts-react-chat/src/lib/model-selection.ts,examples/*/model-selection.ts,examples/ts-react-chat/src/routes/*packages/typescript/ai-client/src/index.ts,packages/typescript/ai/src/index.ts,packages/typescript/ai/src/activities/chat/stream/index.ts,packages/typescript/ai/src/activities/chat/stream/processor.tsscripts/distribute-keys.ts,knip.json,testing/panel/package.json@tanstack/ai-openrouterdependency to testing panel.Sequence Diagram(s)#
Estimated code review effort#
🎯 4 (Complex) | ⏱️ ~60 minutes
Possibly related PRs#
Suggested reviewers#
Poem#
🚥 Pre-merge checks | ❌ 3
❌ Failed checks (2 warnings, 1 inconclusive)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share