@ai-sdk-tool/parser 2.1.6 → 2.1.7
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 +2 -2
- package/dist/chunk-GSD5HDOQ.js +2068 -0
- package/dist/chunk-GSD5HDOQ.js.map +1 -0
- package/dist/community.cjs +2164 -0
- package/dist/community.cjs.map +1 -0
- package/dist/community.d.cts +20 -0
- package/dist/community.d.ts +20 -0
- package/dist/community.js +98 -0
- package/dist/community.js.map +1 -0
- package/dist/index.cjs +23 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -2038
- package/dist/index.js.map +1 -1
- package/package.json +13 -1
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ main().catch(console.error);
|
|
|
99
99
|
|
|
100
100
|
- `gemmaToolMiddleware` — JSON‑mix format inside markdown fences (markdown code fences)
|
|
101
101
|
- `hermesToolMiddleware` — JSON‑mix format wrapped in `<tool_call>` XML tags.
|
|
102
|
-
- `
|
|
102
|
+
- `morphXmlToolMiddleware` — XML format (Morph‑XML protocol).
|
|
103
103
|
|
|
104
104
|
## Protocols
|
|
105
105
|
|
|
@@ -118,7 +118,7 @@ See `examples/parser-core/src/*` for runnable demos (streaming/non‑streaming,
|
|
|
118
118
|
|
|
119
119
|
## [dev] Contributor notes
|
|
120
120
|
|
|
121
|
-
- Exported API: `createToolMiddleware`, `gemmaToolMiddleware`, `hermesToolMiddleware`, `
|
|
121
|
+
- Exported API: `createToolMiddleware`, `gemmaToolMiddleware`, `hermesToolMiddleware`, `morphXmlToolMiddleware`, `jsonMixProtocol`, `morphXmlProtocol`.
|
|
122
122
|
- Debugging:
|
|
123
123
|
- Set `DEBUG_PARSER_MW=stream` to log raw/parsed chunks during runs.
|
|
124
124
|
- Set `DEBUG_PARSER_MW=parse` to log original matched text and parsed summary.
|