@ai-sdk-tool/parser 3.3.3 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/{chunk-NAQSTPDQ.js → chunk-ERJKQKCR.js} +1372 -205
- package/dist/chunk-ERJKQKCR.js.map +1 -0
- package/dist/community.cjs +1390 -223
- package/dist/community.cjs.map +1 -1
- package/dist/community.js +1 -1
- package/dist/index.cjs +1390 -223
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-NAQSTPDQ.js.map +0 -1
package/README.md
CHANGED
|
@@ -37,3 +37,10 @@ for await (const part of result.fullStream) {
|
|
|
37
37
|
// handle text and tool events
|
|
38
38
|
}
|
|
39
39
|
```
|
|
40
|
+
|
|
41
|
+
## Tool-input delta semantics
|
|
42
|
+
|
|
43
|
+
- `jsonProtocol`: `tool-input-delta` emits incremental JSON argument text.
|
|
44
|
+
- `xmlProtocol` and `yamlProtocol`: `tool-input-delta` now also emits incremental JSON argument text (parsed-object prefixes), not raw XML/YAML fragments.
|
|
45
|
+
- `jsonProtocol`, `xmlProtocol`, and `yamlProtocol`: malformed streaming tool payloads do not emit raw protocol markup to `text-delta` by default. Set `emitRawToolCallTextOnError: true` in parser options only if you explicitly want raw fallback text.
|
|
46
|
+
- `tool-input-start.id`, `tool-input-end.id`, and `tool-call.toolCallId` are reconciled to the same ID for each tool call stream.
|