Class A2aTaskView

java.lang.Object
com.xebialabs.xlrelease.a2a.api.views.A2aTaskView

public final class A2aTaskView extends Object
A point-in-time view of a remote A2A task. Immutable.
  • Constructor Details

    • A2aTaskView

      public A2aTaskView(String taskId, String contextId, A2aTaskState state, String text, Double confidence)
      Parameters:
      taskId - the remote task id
      contextId - the remote context id, or null
      state - 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; null if none
      confidence - the agent's self-reported confidence in [0..1] if it supplied one (looked up in task, artifact and status-message metadata under "confidence"), otherwise null. Self-reported and unverified — a policy signal, never a policy decision by itself.
  • Method Details

    • getTaskId

      public String getTaskId()
    • getContextId

      public String getContextId()
    • getState

      public A2aTaskState getState()
    • getText

      public String getText()
    • getConfidence

      public Double getConfidence()