类 ConfirmResult
java.lang.Object
io.agentscope.core.event.ConfirmResult
Represents the result of a single user confirmation decision for a tool call.
When confirmed, the caller may supply a modified toolCall (allowing the user to
tweak input) and/or new rules that the PermissionEngine should remember for
future calls — e.g. "always allow this command going forward".
-
构造器概要
构造器构造器说明ConfirmResult(boolean confirmed, ToolUseBlock toolCall) Convenience constructor without rules.ConfirmResult(boolean confirmed, ToolUseBlock toolCall, List<PermissionRule> rules) -
方法概要
修饰符和类型方法说明getRules()New permission rules to register with the engine whenconfirmedis true.boolean
-
构造器详细资料
-
ConfirmResult
-
ConfirmResult
Convenience constructor without rules.
-
-
方法详细资料
-
isConfirmed
public boolean isConfirmed() -
getToolCall
-
getRules
New permission rules to register with the engine whenconfirmedis true. Each rule extends the engine's allow / deny / ask tables based on itsbehavior.- 返回:
- list of rules (may be null or empty)
-