类 ConfirmResult

java.lang.Object
io.agentscope.core.event.ConfirmResult

public class ConfirmResult extends Object
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

      public ConfirmResult(boolean confirmed, ToolUseBlock toolCall, List<PermissionRule> rules)
    • ConfirmResult

      public ConfirmResult(boolean confirmed, ToolUseBlock toolCall)
      Convenience constructor without rules.
  • 方法详细资料

    • isConfirmed

      public boolean isConfirmed()
    • getToolCall

      public ToolUseBlock getToolCall()
    • getRules

      public List<PermissionRule> getRules()
      New permission rules to register with the engine when confirmed is true. Each rule extends the engine's allow / deny / ask tables based on its behavior.
      返回:
      list of rules (may be null or empty)