Class A2aTaskView
java.lang.Object
com.xebialabs.xlrelease.a2a.api.views.A2aTaskView
A point-in-time view of a remote A2A task. Immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionA2aTaskView(String taskId, String contextId, A2aTaskState state, String text, Double confidence) -
Method Summary
-
Constructor Details
-
A2aTaskView
public A2aTaskView(String taskId, String contextId, A2aTaskState state, String text, Double confidence) - Parameters:
taskId- the remote task idcontextId- the remote context id, ornullstate- the task's lifecycle state; poll again while!state.isTerminal()text- the agent's most relevant textual output so far: the latest artifact's text parts if any, otherwise the status message's text parts;nullif noneconfidence- the agent's self-reported confidence in [0..1] if it supplied one (looked up in task, artifact and status-message metadata under"confidence"), otherwisenull. Self-reported and unverified — a policy signal, never a policy decision by itself.
-
-
Method Details
-
getTaskId
-
getContextId
-
getState
-
getText
-
getConfidence
-