refactor(llm): rename CallId to ToolCallId

This commit is contained in:
_Kerman
2026-08-21 16:10:24 +08:00
parent 8cf2445f11
commit a789637db6
186 changed files with 1013 additions and 1013 deletions
@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/user/develop/practice/llm-adapter.md
llm-adapter.md: 882e82d880ac622cf886c6c24e75a1987e1c6702
llm-adapter.zh.md: 27c480af2a19a68ac35900a2ce1b5e9dbdc85bf8
llm-adapter.md: ff5fc5657e2be0a5fe0d4e10f148865e62f92b18
llm-adapter.zh.md: b05bfad6cbc4038f54f816b212068d85e54c2100
+3 -3
View File
@@ -54,7 +54,7 @@ export function apply(ctx: Context, config: Config) {
`stream()` yields chunks using this protocol:
```ts
import { CallId, type StreamChunk } from '@deepseek-ai/dsh-llm'
import { ToolCallId, type StreamChunk } from '@deepseek-ai/dsh-llm'
async function* exampleChunks(): AsyncIterable<StreamChunk> {
// 1. Start each content block with block-start.
@@ -76,7 +76,7 @@ async function* exampleChunks(): AsyncIterable<StreamChunk> {
yield {
type: 'tool-call-delta',
index: 1,
id: CallId('call-123'),
id: ToolCallId('call-123'),
name: 'bash',
argumentsDelta: '{"command":"ls"}',
}
@@ -85,7 +85,7 @@ async function* exampleChunks(): AsyncIterable<StreamChunk> {
index: 1,
block: {
type: 'tool-call',
id: CallId('call-123'),
id: ToolCallId('call-123'),
name: 'bash',
arguments: '{"command":"ls"}',
},
+3 -3
View File
@@ -54,7 +54,7 @@ export function apply(ctx: Context, config: Config) {
`stream()` 必须按以下协议生成分片:
```ts
import { CallId, type StreamChunk } from '@deepseek-ai/dsh-llm'
import { ToolCallId, type StreamChunk } from '@deepseek-ai/dsh-llm'
async function* exampleChunks(): AsyncIterable<StreamChunk> {
// 1. Start each content block with block-start.
@@ -76,7 +76,7 @@ async function* exampleChunks(): AsyncIterable<StreamChunk> {
yield {
type: 'tool-call-delta',
index: 1,
id: CallId('call-123'),
id: ToolCallId('call-123'),
name: 'bash',
argumentsDelta: '{"command":"ls"}',
}
@@ -85,7 +85,7 @@ async function* exampleChunks(): AsyncIterable<StreamChunk> {
index: 1,
block: {
type: 'tool-call',
id: CallId('call-123'),
id: ToolCallId('call-123'),
name: 'bash',
arguments: '{"command":"ls"}',
},