Class ToolCallLimitHook

java.lang.Object
com.alibaba.cloud.ai.graph.agent.hook.ModelHook
com.alibaba.cloud.ai.graph.agent.hook.toolcalllimit.ToolCallLimitHook
All Implemented Interfaces:
Hook

public class ToolCallLimitHook extends ModelHook
Hook that tracks and limits tool call counts. This hook monitors the number of tool calls made during agent execution and can terminate the agent when specified limits are reached.