@mastra/react 1.4.10 → 1.4.11-alpha.1
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/dist/agent/hooks.d.ts.map +1 -1
- package/dist/agent/types.d.ts +9 -0
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2108,7 +2108,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2108
2108
|
threadSignalsDisabled
|
|
2109
2109
|
]);
|
|
2110
2110
|
const generate = async ({ coreUserMessages, model, requestContext, threadId, modelSettings, signal, onFinish, tracingOptions, clientTools }) => {
|
|
2111
|
-
const { frequencyPenalty, presencePenalty, maxRetries, maxTokens, temperature, topK, topP, instructions, providerOptions, maxSteps, requireToolApproval } = modelSettings || {};
|
|
2111
|
+
const { frequencyPenalty, presencePenalty, maxRetries, maxTokens, temperature, topK, topP, instructions, system, providerOptions, maxSteps, requireToolApproval } = modelSettings || {};
|
|
2112
2112
|
const resolvedRequestContext = requestContext ?? propsRequestContext;
|
|
2113
2113
|
const resolvedClientTools = clientTools ?? hookClientTools;
|
|
2114
2114
|
_activeContinuation.current = {
|
|
@@ -2136,6 +2136,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2136
2136
|
topP
|
|
2137
2137
|
},
|
|
2138
2138
|
instructions,
|
|
2139
|
+
system,
|
|
2139
2140
|
requestContext: resolvedRequestContext,
|
|
2140
2141
|
...threadId ? { memory: {
|
|
2141
2142
|
thread: threadId,
|
|
@@ -2170,7 +2171,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2170
2171
|
}
|
|
2171
2172
|
};
|
|
2172
2173
|
const stream = async ({ coreUserMessages, model, requestContext, threadId, onChunk, modelSettings, signal, tracingOptions, clientTools, signalId, clientMessageId }) => {
|
|
2173
|
-
const { frequencyPenalty, presencePenalty, maxRetries, maxTokens, temperature, topK, topP, instructions, providerOptions, maxSteps, requireToolApproval } = modelSettings || {};
|
|
2174
|
+
const { frequencyPenalty, presencePenalty, maxRetries, maxTokens, temperature, topK, topP, instructions, system, providerOptions, maxSteps, requireToolApproval } = modelSettings || {};
|
|
2174
2175
|
const resolvedRequestContext = requestContext ?? propsRequestContext;
|
|
2175
2176
|
const resolvedClientTools = clientTools ?? hookClientTools;
|
|
2176
2177
|
const signalContinuationOptions = {
|
|
@@ -2186,6 +2187,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2186
2187
|
topP
|
|
2187
2188
|
},
|
|
2188
2189
|
instructions,
|
|
2190
|
+
system,
|
|
2189
2191
|
providerOptions,
|
|
2190
2192
|
requireToolApproval,
|
|
2191
2193
|
tracingOptions
|
|
@@ -2221,6 +2223,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2221
2223
|
topP
|
|
2222
2224
|
},
|
|
2223
2225
|
instructions,
|
|
2226
|
+
system,
|
|
2224
2227
|
requestContext: resolvedRequestContext,
|
|
2225
2228
|
...threadId ? { memory: {
|
|
2226
2229
|
thread: threadId,
|
|
@@ -2266,6 +2269,7 @@ const useChat = ({ agentId, resourceId, threadId, initialMessages, requestContex
|
|
|
2266
2269
|
topP
|
|
2267
2270
|
},
|
|
2268
2271
|
instructions,
|
|
2272
|
+
system,
|
|
2269
2273
|
requestContext: requestContextRecord,
|
|
2270
2274
|
providerOptions,
|
|
2271
2275
|
requireToolApproval,
|