From 5df971de0dda37fe28d652a16c1eb0b23e4e5ff2 Mon Sep 17 00:00:00 2001 From: Bin-Home Date: Tue, 28 Apr 2026 13:31:54 +0800 Subject: [PATCH] feat: add reasoningContent to Message and reasoning delta type --- src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index a69fa9d..17b7eb7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -13,10 +13,11 @@ export interface Message { content: string; toolCalls?: ToolCall[]; toolCallId?: string; + reasoningContent?: string; } export interface Delta { - type: "text" | "tool_call" | "done" | "error"; + type: "text" | "tool_call" | "done" | "error" | "reasoning"; text?: string; toolCall?: ToolCall; error?: { kind: string; message: string };