Class ModelHook
java.lang.Object
com.alibaba.cloud.ai.graph.agent.hook.ModelHook
- All Implemented Interfaces:
Hook
- Direct Known Subclasses:
HumanInTheLoopHook,InterruptionHook,ModelCallLimitHook,ToolCallLimitHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterModel(OverAllState state, RunnableConfig config) beforeModel(OverAllState state, RunnableConfig config) getAgent()voidsetAgent(ReactAgent agent) voidsetAgentName(String agentName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.cloud.ai.graph.agent.hook.Hook
canJumpTo, getHookPositions, getKeyStrategys, getName
-
Constructor Details
-
ModelHook
public ModelHook()
-
-
Method Details
-
beforeModel
-
afterModel
-
setAgentName
- Specified by:
setAgentNamein interfaceHook
-
getAgentName
- Specified by:
getAgentNamein interfaceHook
-
getAgent
-
setAgent
-