feat: 接入AI sdk

This commit is contained in:
digua
2026-01-21 00:18:59 +08:00
parent fc76602604
commit 8f3f3e62f2
15 changed files with 960 additions and 1438 deletions

View File

@@ -406,6 +406,7 @@ interface AgentStreamChunk {
type: 'content' | 'think' | 'tool_start' | 'tool_result' | 'done' | 'error'
content?: string
thinkTag?: string
thinkDurationMs?: number
toolName?: string
toolParams?: Record<string, unknown>
toolResult?: unknown