Skip to content

feat(a2a): add v1.1 generation+timeline, timestamps, and task view core types - #642

Merged
polchernikova-w merged 3 commits into
release/v1.1from
v1.1-core-types
Nov 29, 2026
Merged

polchernikova-w merged 3 commits into
release/v1.1from
v1.1-core-types

Conversation

@polchernikova-w

Copy link
Copy Markdown
Contributor

Target: release/v1.1

Part 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:

Generation fields use the new TaskGeneration type. It encodes as a ProtoJSON int64 (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 Timestamp type (struct{ time.Time }) the same way. Embedding keeps all time.Time methods, and Equal(Timestamp) makes cmp work. Two existing timestamps keep the old way: TaskStatus.Timestamp and ListTasksRequest.StatusTimestampAfter stay *time.Time with their per-struct MarshalJSON from #452, because changing their type would break users. Both are deprecated in v1.1 and removed in 2.0, so after that Timestamp is 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.

@polchernikova-w polchernikova-w added this to the 1.1.0 milestone Nov 27, 2026
@polchernikova-w
polchernikova-w marked this pull request as ready for review November 27, 2026 10:32
Comment thread a2a/core.go Resolved
@polchernikova-w
polchernikova-w merged commit ce4372d into release/v1.1 Nov 29, 2026
5 checks passed
@polchernikova-w
polchernikova-w deleted the v1.1-core-types branch November 29, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants