Class GetReleaseStatusSkill
- All Implemented Interfaces:
A2aServerSkill
The release id is taken from message metadata releaseId when present, otherwise the
first release-id-shaped token in the message text. Permission checking is the host API's:
the lookup runs as the authenticated caller.
-
Constructor Summary
ConstructorsConstructorDescriptionGetReleaseStatusSkill(com.xebialabs.xlrelease.api.v1.ReleaseApi releaseApi, A2aReleaseTaskMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionWhat the skill does and what input it expects — agents read this to decide what to send.id()Skill id as advertised on the Agent Card and addressed via message metadataskillId.Executes the skill.name()Human-readable name for the Agent Card.booleanreadOnly()Whether the skill only reads Release state.
-
Constructor Details
-
GetReleaseStatusSkill
public GetReleaseStatusSkill(com.xebialabs.xlrelease.api.v1.ReleaseApi releaseApi, A2aReleaseTaskMapper mapper)
-
-
Method Details
-
id
Description copied from interface:A2aServerSkillSkill id as advertised on the Agent Card and addressed via message metadataskillId.- Specified by:
idin interfaceA2aServerSkill
-
name
Description copied from interface:A2aServerSkillHuman-readable name for the Agent Card.- Specified by:
namein interfaceA2aServerSkill
-
description
Description copied from interface:A2aServerSkillWhat the skill does and what input it expects — agents read this to decide what to send.- Specified by:
descriptionin interfaceA2aServerSkill
-
readOnly
public boolean readOnly()Description copied from interface:A2aServerSkillWhether the skill only reads Release state. When the A2A feature's read-only mode is on, skills returningfalseare hidden from the Agent Card and rejected if called anyway.- Specified by:
readOnlyin interfaceA2aServerSkill
-
invoke
Description copied from interface:A2aServerSkillExecutes the skill.Runs on the HTTP request thread under the caller's authenticated identity, so host API calls are permission-checked as that caller. Return
A2aSkillOutcome.text(String)for an immediately-complete result, orA2aSkillOutcome.release(String)for work delegated to a release, whose live state becomes the A2A task from then on. ThrowIllegalArgumentExceptionfor bad input (becomes a failed A2A task with the message as explanation),A2aContractViolationExceptionfor a governance handoff-contract violation (becomes a rejected task); any other exception is reported as a failed task without internal detail.- Specified by:
invokein interfaceA2aServerSkill- Parameters:
text- the concatenated text parts of the incoming messagemetadata- the incoming message's metadata values, stringified
-