Class A2aSkillResult

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

public final class A2aSkillResult extends Object
What a plugin-contributed A2A skill produced: either an immediate text artifact (the A2A task completes as the method returns), or a release the skill started — typically through the bridged TemplateApi/ReleaseApi — whose live state becomes the A2A task from then on (working, input-required while a gate waits on a human, completed/failed with the release). Exactly one of the two members is set. Immutable.
  • Method Details

    • text

      public static A2aSkillResult text(String artifactText)
      An immediately-complete result: the text becomes the completed task's artifact.
    • release

      public static A2aSkillResult release(String releaseId)
      Long-running work delegated to a release the skill created and started.
    • isReleaseBacked

      public boolean isReleaseBacked()
    • getArtifactText

      public String getArtifactText()
      The artifact text; null when isReleaseBacked().
    • getReleaseId

      public String getReleaseId()
      The backing release id; null unless isReleaseBacked().