Annotation Interface A2ATaskId


@Retention(RUNTIME) @Target(PARAMETER) public @interface A2ATaskId
Marks a parameter that will be set as the taskId on the outgoing A2A Message envelope, rather than being included as a TextPart in the message content.

The task identifier references an existing task in an A2A multi-turn conversation. When null, the A2A server will create a new task.

Example:


public interface MyA2AAgent {

    @A2AClientAgent(a2aServerUrl = "http://localhost:8080", outputKey = "response")
    String chat(@V("question") String question,
                @A2AContextId String contextId,
                @A2ATaskId String taskId);
}