Class A2aSendResult
java.lang.Object
com.xebialabs.xlrelease.a2a.api.views.A2aSendResult
The immediate outcome of sending a message to an A2A agent.
An A2A agent may answer a message in two shapes: with a stateful task to be polled
(getTaskId() set, state usually non-terminal), or — for quick interactions — with a
direct message and no task at all (getTaskId() null, state
A2aTaskState.COMPLETED, getText() carrying the answer). Immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionA2aSendResult(String taskId, String contextId, A2aTaskState state, String text, Double confidence) -
Method Summary
-
Constructor Details
-
A2aSendResult
public A2aSendResult(String taskId, String contextId, A2aTaskState state, String text, Double confidence) - Parameters:
taskId- the remote task id to poll, ornullwhen the agent answered directly without creating a taskcontextId- the remote context grouping this exchange, ornullstate- the remote task state at send time;A2aTaskState.COMPLETEDfor a direct message answertext- any text the agent returned immediately, ornullconfidence- the agent's self-reported confidence if it supplied one — also for direct message answers, so an immediate result is policy-evaluated the same way a polled one is;nullwhen not reported
-
-
Method Details
-
getTaskId
-
getContextId
-
getState
-
getText
-
getConfidence
-