Package org.bsc.langgraph4j.action
Interface EdgeAction<S extends AgentState>
- Type Parameters:
S
- the type of the agent state
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents an edge action that operates on an agent state and returns a result.
-
Method Summary
-
Method Details
-
apply
Applies this action to the given agent state.- Parameters:
t
- the agent state- Returns:
- a result of the action
- Throws:
Exception
- if an error occurs during the action
-