feat: 追加思考内容块

This commit is contained in:
digua
2026-01-20 22:06:45 +08:00
parent 0203b9bb72
commit fc76602604
6 changed files with 328 additions and 81 deletions

View File

@@ -403,8 +403,9 @@ interface TokenUsage {
// Agent 相关类型
interface AgentStreamChunk {
type: 'content' | 'tool_start' | 'tool_result' | 'done' | 'error'
type: 'content' | 'think' | 'tool_start' | 'tool_result' | 'done' | 'error'
content?: string
thinkTag?: string
toolName?: string
toolParams?: Record<string, unknown>
toolResult?: unknown