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
FieldsFields inherited from class org.bsc.langgraph4j.prebuilt.MessagesState
MESSAGES_STATEFields inherited from class org.bsc.langgraph4j.state.AgentState
MARK_FOR_REMOVAL, MARK_FOR_RESET -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
TOOL_EXECUTION_REQUESTS
- See Also:
-
TOOL_EXECUTION_RESPONSES
- See Also:
-
NEXT_ACTION
- See Also:
-
-
Constructor Details
-
State
Constructs a new State with the given initialization data.- Parameters:
initData- the initialization data
-
-
Method Details
-
toolExecutionRequests
-
toolExecutionRequests$getFirst
public Optional<org.springframework.ai.chat.messages.AssistantMessage.ToolCall> toolExecutionRequests$getFirst() -
toolExecutionResponses
public List<org.springframework.ai.chat.messages.ToolResponseMessage.ToolResponse> toolExecutionResponses() -
nextAction
-