类 AllToolsDeniedEvent

java.lang.Object
io.agentscope.core.event.AgentEvent
io.agentscope.core.event.AllToolsDeniedEvent

public class AllToolsDeniedEvent extends AgentEvent
Emitted during the acting phase when all tool calls from the most recent reasoning step were denied (by user HITL confirmation or by permission rules).

Middlewares observing MiddlewareBase.onActing(io.agentscope.core.agent.Agent, io.agentscope.core.agent.RuntimeContext, io.agentscope.core.middleware.ActingInput, java.util.function.Function<io.agentscope.core.middleware.ActingInput, reactor.core.publisher.Flux<io.agentscope.core.event.AgentEvent>>) can detect this event and emit a RequestStopEvent with GenerateReason.ALL_TOOLS_DENIED to prevent the agent from continuing to the next reasoning iteration.

If no middleware emits a stop, the agent continues reasoning as before (backward compatible).

  • 构造器详细资料

    • AllToolsDeniedEvent

      public AllToolsDeniedEvent(List<ToolUseBlock> deniedToolCalls)
  • 方法详细资料