Interface LoopStrategy
- All Known Implementing Classes:
ArrayLoopStrategy,ConditionLoopStrategy,CountLoopStrategy
public interface LoopStrategy
Loop strategy for LoopAgent, used to control the behavior of LoopAgent.
This part is equivalent to defining the loopInitNode and loopDispatchNode for the StateGraph corresponding to LoopAgent.
Built-in strategies provided by LoopMode can be used directly when in use. If custom loop logic is required, this interface can be implemented.
- Since:
- 2025/11/1
- Author:
- vlsmb
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringloopDispatch(OverAllState state) default Stringdefault StringloopInit(OverAllState state) default Stringdefault Stringdefault inttempKeys()default String
-
Field Details
-
ITERABLE_ELEMENT_COUNT
static final int ITERABLE_ELEMENT_COUNT- See Also:
-
LOOP_FLAG_PREFIX
- See Also:
-
LOOP_LIST_PREFIX
- See Also:
-
LOOP_COUNT_PREFIX
- See Also:
-
INIT_NODE_NAME
- See Also:
-
DISPATCH_NODE_NAME
- See Also:
-
MESSAGE_KEY
- See Also:
-
-
Method Details
-
loopInit
-
loopDispatch
-
uniqueKey
-
tempKeys
-
maxLoopCount
default int maxLoopCount() -
loopFlagKey
-
loopListKey
-
loopCountKey
-
loopInitNodeName
-
loopDispatchNodeName
-