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 Details

  • Constructor Details

    • State

      public State(Map<String,Object> initData)
      Constructs a new State with the given initialization data.
      Parameters:
      initData - the initialization data
  • Method Details

    • toolExecutionRequests

      public List<org.springframework.ai.chat.messages.AssistantMessage.ToolCall> 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

      public Optional<String> nextAction()