Class AgentExecutorEx.State
java.lang.Object
org.bsc.langgraph4j.state.AgentState
org.bsc.langgraph4j.prebuilt.MessagesState<org.springframework.ai.chat.messages.Message>
org.bsc.langgraph4j.spring.ai.agentexecutor.AgentExecutorEx.State
- Enclosing interface:
- AgentExecutorEx
public static class AgentExecutorEx.State
extends MessagesState<org.springframework.ai.chat.messages.Message>
Represents the state of an agent in a system.
This class extends
AgentState and defines constants for keys related to input, agent outcome,
and intermediate steps. It includes a static map schema that specifies how these keys should be handled.-
Field Summary
Fields inherited from class org.bsc.langgraph4j.state.AgentState
MARK_FOR_REMOVAL, MARK_FOR_RESET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse>findToolResponseByToolCall(org.springframework.ai.chat.messages.AssistantMessage.ToolCall toolCall) List<org.springframework.ai.chat.messages.ToolResponseMessage>Methods inherited from class org.bsc.langgraph4j.prebuilt.MessagesState
lastMessage, lastMinus, messagesMethods inherited from class org.bsc.langgraph4j.state.AgentState
data, mergeWith, toString, updateState, updateState, value, value, value
-
Constructor Details
-
State
Constructs a new State with the given initialization data.- Parameters:
initData- the initialization data
-
-
Method Details
-
toolExecutionResults
-
nextAction
-
findToolResponseByToolCall
public Optional<org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse> findToolResponseByToolCall(org.springframework.ai.chat.messages.AssistantMessage.ToolCall toolCall)
-