Interface DecisionResponseAccess

All Known Implementing Classes:
DecisionAgentInvocationHandler

@Experimental public interface DecisionResponseAccess
Gives access to the last response of the decision model of a decision agent, so that it can be reported to the AgentListeners together with the agent's output. It is the counterpart of ChatMessagesAccess for the agents built with AgenticServices.decisionAgentBuilder(Class). A class wrapping a decision agent must implement this interface and not ChatMessagesAccess or ChatMemoryAccess, whose methods a decision agent rejects.
Since:
1.23.0
  • Method Summary

    Modifier and Type
    Method
    Description
    lastDecisionResponse(Object agenticScopeId)
    The response of the decision model to the last invocation of the agent in the agentic scope with the given memory id, or null if the agent was not invoked in that scope or its last invocation failed.
    void
    Forgets the response kept for the agentic scope with the given memory id.
  • Method Details

    • lastDecisionResponse

      DecisionResponse lastDecisionResponse(Object agenticScopeId)
      The response of the decision model to the last invocation of the agent in the agentic scope with the given memory id, or null if the agent was not invoked in that scope or its last invocation failed.
    • removeLastDecisionResponse

      void removeLastDecisionResponse(Object agenticScopeId)
      Forgets the response kept for the agentic scope with the given memory id.