Interface DecisionResponseAccess
- All Known Implementing Classes:
DecisionAgentInvocationHandler
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 TypeMethodDescriptionlastDecisionResponse(Object agenticScopeId) The response of the decision model to the last invocation of the agent in the agentic scope with the given memory id, ornullif the agent was not invoked in that scope or its last invocation failed.voidremoveLastDecisionResponse(Object agenticScopeId) Forgets the response kept for the agentic scope with the given memory id.
-
Method Details
-
lastDecisionResponse
The response of the decision model to the last invocation of the agent in the agentic scope with the given memory id, ornullif the agent was not invoked in that scope or its last invocation failed. -
removeLastDecisionResponse
Forgets the response kept for the agentic scope with the given memory id.
-