@mastra/react 0.4.0-alpha.1 → 0.4.0-alpha.10
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 +95 -0
- package/dist/agent/hooks.d.ts +3 -0
- package/dist/agent/hooks.d.ts.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2147,7 +2147,8 @@ var useChat = ({
|
|
|
2147
2147
|
modelSettings,
|
|
2148
2148
|
signal,
|
|
2149
2149
|
onFinish,
|
|
2150
|
-
tracingOptions
|
|
2150
|
+
tracingOptions,
|
|
2151
|
+
clientTools
|
|
2151
2152
|
}) => {
|
|
2152
2153
|
const {
|
|
2153
2154
|
frequencyPenalty,
|
|
@@ -2189,7 +2190,8 @@ var useChat = ({
|
|
|
2189
2190
|
...threadId2 ? { memory: { thread: threadId2, resource: resourceId || agentId } } : {},
|
|
2190
2191
|
providerOptions,
|
|
2191
2192
|
tracingOptions,
|
|
2192
|
-
requireToolApproval
|
|
2193
|
+
requireToolApproval,
|
|
2194
|
+
clientTools
|
|
2193
2195
|
});
|
|
2194
2196
|
if (response.finishReason === "suspended" && response.suspendPayload) {
|
|
2195
2197
|
const { toolCallId, toolName, args } = response.suspendPayload;
|
|
@@ -2232,6 +2234,7 @@ var useChat = ({
|
|
|
2232
2234
|
modelSettings,
|
|
2233
2235
|
signal,
|
|
2234
2236
|
tracingOptions,
|
|
2237
|
+
clientTools,
|
|
2235
2238
|
signalId
|
|
2236
2239
|
}) => {
|
|
2237
2240
|
const {
|
|
@@ -2281,7 +2284,8 @@ var useChat = ({
|
|
|
2281
2284
|
...threadId2 ? { memory: { thread: threadId2, resource: resourceId || agentId } } : {},
|
|
2282
2285
|
providerOptions,
|
|
2283
2286
|
requireToolApproval,
|
|
2284
|
-
tracingOptions
|
|
2287
|
+
tracingOptions,
|
|
2288
|
+
clientTools
|
|
2285
2289
|
});
|
|
2286
2290
|
_onChunk.current = onChunk;
|
|
2287
2291
|
_currentRunId.current = runId;
|