@ai-sdk/provider-utils 4.0.35 → 4.0.36
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/tool.ts +2 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -59,6 +59,7 @@ export {
|
|
|
59
59
|
type Schema,
|
|
60
60
|
type ValidationResult,
|
|
61
61
|
} from './schema';
|
|
62
|
+
export { secureJsonParse } from './secure-json-parse';
|
|
62
63
|
export { stripFileExtension } from './strip-file-extension';
|
|
63
64
|
export * from './uint8-utils';
|
|
64
65
|
export { validateDownloadUrl } from './validate-download-url';
|
package/src/types/tool.ts
CHANGED
|
@@ -198,6 +198,8 @@ export type Tool<
|
|
|
198
198
|
* Optional conversion function that maps the tool result to an output that can be used by the language model.
|
|
199
199
|
*
|
|
200
200
|
* If not provided, the tool result will be sent as a JSON object.
|
|
201
|
+
*
|
|
202
|
+
* This function is invoked on the server by `convertToModelMessages`, so ensure that you pass the same "tools" (ToolSet) to both "convertToModelMessages" and "streamText" (or other generation APIs).
|
|
201
203
|
*/
|
|
202
204
|
toModelOutput?: (options: {
|
|
203
205
|
/**
|