Repository navigation
feat(a2a): add v1.1 generation+timeline, timestamps, and task view core types - #642
Merged
Merged
Conversation
yarolegovich
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Target:
release/v1.1Part of the A2A v1.1 work see the implementation breakdowns for generation + timeline and bidi live. This PR contains core types only, no behavior changes.
This PR addresses the following from the v1.1 spec:
Task.Generation, andGenerationonTaskStatusUpdateEventandTaskArtifactUpdateEvent.Task.Timeline,TimelineEntry(entries of unknown kinds are kept with only their generation),Artifact.StartGeneration/EndGeneration.Task.CreatedAt/UpdatedAt(§4.1.1 Task),Artifact.UpdatedAt(§4.1.7 Artifact),TimelineEntry.Timestamp(§4.1.8 TimelineEntry),TimestamponTaskStatusUpdateEvent(§4.2.1) andTaskMessageUpdateEvent(§4.2.3).TaskStatus.Timestamp(§4.1.2 TaskStatus) andListTasksRequest.StatusTimestampAfter(§3.1.4 List Tasks) are markedDeprecated.TaskMessageUpdateEvent,NewMessageUpdateEvent, and themessageUpdatecase ofStreamResponse.SendMessageConfig.IfGenerationMatch.GetTaskRequest.CurrentGeneration.SubscribeToTaskRequest.LastSeenGeneration.ErrTaskGenerationMismatch(TASK_GENERATION_MISMATCH).Task.HistoryandHistoryLengthon all requests are markedDeprecated.TaskView(TASK_VIEW_FULL,TASK_VIEW_SUMMARY),ViewonGetTaskRequestandListTasksRequest,TaskViewonSendMessageConfig.ListTasksRequest.IncludeArtifactsis markedDeprecated, and theHistoryLengthdeprecation notes point toView/TaskView.Generation fields use the new
TaskGenerationtype. It encodes as a ProtoJSONint64(a decimal string) and decodes from both strings and numbers. The encoding sits on the field type, not on the structs, so integrator structs that embed SDK types keep encoding their own fields.The 6 new timestamp fields use the new
Timestamptype (struct{ time.Time }) the same way. Embedding keeps alltime.Timemethods, andEqual(Timestamp)makescmpwork. Two existing timestamps keep the old way:TaskStatus.TimestampandListTasksRequest.StatusTimestampAfterstay*time.Timewith their per-structMarshalJSONfrom #452, because changing their type would break users. Both are deprecated in v1.1 and removed in 2.0, so after thatTimestampis the only timestamp type. On the wire all timestamps look the same.Backward compatibility: only new fields, types and an error are added. All new fields are optional and omitted when empty, so requests and responses are unchanged.