You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Prefix used when constructing human-facing approval messages.
148
148
* Provides context about the tool call being reviewed; does not change the underlying action.
@@ -209,11 +209,11 @@ const contextSchema = z
209
209
* - `response`: Provide a manual response instead of executing the tool
210
210
*
211
211
* @param options - Configuration options for the middleware
212
-
* @param options.toolConfigs - Per-tool configuration mapping tool names to their settings
213
-
* @param options.toolConfigs[toolName].allowAccept - Whether the human can approve the current action without changes
214
-
* @param options.toolConfigs[toolName].allowEdit - Whether the human can reject the current action with feedback
215
-
* @param options.toolConfigs[toolName].allowRespond - Whether the human can approve the current action with edited content
216
-
* @param options.toolConfigs[toolName].description - Custom approval message for the tool
212
+
* @param options.interruptOn - Per-tool configuration mapping tool names to their settings
213
+
* @param options.interruptOn[toolName].allowAccept - Whether the human can approve the current action without changes
214
+
* @param options.interruptOn[toolName].allowEdit - Whether the human can reject the current action with feedback
215
+
* @param options.interruptOn[toolName].allowRespond - Whether the human can approve the current action with edited content
216
+
* @param options.interruptOn[toolName].description - Custom approval message for the tool
217
217
* @param options.messagePrefix - Default prefix for approval messages (default: "Tool execution requires approval"). Only used for tools that do not define a custom `description` in their ToolConfig.
218
218
*
219
219
* @returns A middleware instance that can be passed to `createAgent`
0 commit comments