Repository navigation
feat: add view field and list and get task requests (#2010) - #2399
Merged
Merged
Conversation
1 task done
Clients polling a task after SendMessage with return_immediately have no way to skip artifacts on GetTask, so every poll can carry the full artifact payload. Reuse the include_artifacts name from ListTasksRequest, relying on field presence so an unset value keeps today's behavior (artifacts included).
A plain bool whose zero value means "include artifacts" keeps today's GetTask behavior for clients and SDKs that ignore field presence, which an optional include_artifacts defaulting to true does not guarantee.
Tehsmash
force-pushed
the
feat/get-task-include-artifacts
branch
from
November 3, 2026 12:31
e206be2 to
cd135f0
Compare
Tehsmash
approved these changes
Nov 3, 2026
sugandhrakha
approved these changes
Nov 3, 2026
sugandhrakha
left a comment
There was a problem hiding this comment.
LGTM.
Approving based on the TSC review meeting.
Member
|
discussed during the TSC, the consensus seems to be:
|
…stTasks Applies the TSC consensus on #2399. A `view` field on GetTaskRequest and ListTasksRequest selects the returned Task fields: TASK_VIEW_FULL returns everything, TASK_VIEW_METADATA omits artifacts, history and timeline (and may omit future additions). Leaving `view` unset keeps each method's existing behavior for compatibility, which for ListTasks (history, no timeline, artifacts only via include_artifacts) matches no view. timeline_length is removed from SendMessageConfiguration, GetTaskRequest and ListTasksRequest: it was added during 1.1 and never released. Its field numbers are reserved so pre-release implementations cannot misread them.
No code was generated from the 1.1 draft protos, so timeline_length is removed outright and `view` takes its field numbers. The spec text is cut down to what readers need.
herczyn
reviewed
Nov 4, 2026
herczyn
approved these changes
Nov 4, 2026
Tehsmash
reviewed
Nov 4, 2026
…ude-artifacts # Conflicts: # docs/specification.md # specification/a2a.proto
Tehsmash
requested changes
Nov 25, 2026
Tehsmash
approved these changes
Nov 27, 2026
polchernikova-w
added a commit
to a2aproject/a2a-go
that referenced
this pull request
Nov 29, 2026
…re types (#642) Target: `release/v1.1` Part of the A2A v1.1 work see the implementation breakdowns for [generation + timeline](#612) and [bidi live](#619). This PR contains core types only, no behavior changes. This PR addresses the following from the [v1.1 spec](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md): - [§3.2.7 Task Generation Semantics](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#327-task-generation-semantics): `Task.Generation`, and `Generation` on `TaskStatusUpdateEvent` and `TaskArtifactUpdateEvent`. - [§3.2.8 Task Timeline Semantics](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#328-task-timeline-semantics), [§4.1.8 TimelineEntry](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#418-timelineentry), [§4.1.7 Artifact](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#417-artifact): `Task.Timeline`, `TimelineEntry` (entries of unknown kinds are kept with only their generation), `Artifact.StartGeneration` / `EndGeneration`. - [§3.2.8 Task Timeline Semantics, Timestamps](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#328-task-timeline-semantics) ([A2A#2426](a2aproject/A2A#2426)): `Task.CreatedAt` / `UpdatedAt` ([§4.1.1 Task](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#411-task)), `Artifact.UpdatedAt` ([§4.1.7 Artifact](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#417-artifact)), `TimelineEntry.Timestamp` ([§4.1.8 TimelineEntry](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#418-timelineentry)), `Timestamp` on `TaskStatusUpdateEvent` ([§4.2.1](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#421-taskstatusupdateevent)) and `TaskMessageUpdateEvent` ([§4.2.3](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#423-taskmessageupdateevent)). `TaskStatus.Timestamp` ([§4.1.2 TaskStatus](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#412-taskstatus)) and `ListTasksRequest.StatusTimestampAfter` ([§3.1.4 List Tasks](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#314-list-tasks)) are marked `Deprecated`. - [§4.2.3 TaskMessageUpdateEvent](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#423-taskmessageupdateevent): `TaskMessageUpdateEvent`, `NewMessageUpdateEvent`, and the `messageUpdate` case of `StreamResponse`. - [§3.2.2 SendMessageConfiguration](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#322-sendmessageconfiguration): `SendMessageConfig.IfGenerationMatch`. - [§3.1.3 Get Task](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#313-get-task): `GetTaskRequest.CurrentGeneration`. - [§3.1.6 Subscribe to Task](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#316-subscribe-to-task): `SubscribeToTaskRequest.LastSeenGeneration`. - [§3.3.2 Error Handling](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#332-error-handling): `ErrTaskGenerationMismatch` (`TASK_GENERATION_MISMATCH`). - [§3.2.4 History Length Semantics](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#324-history-length-semantics): `Task.History` and `HistoryLength` on all requests are marked `Deprecated`. - Task View from [A2A#2399](a2aproject/A2A#2399) (not merged yet): `TaskView` (`TASK_VIEW_FULL`, `TASK_VIEW_SUMMARY`), `View` on `GetTaskRequest` and `ListTasksRequest`, `TaskView` on `SendMessageConfig`. `ListTasksRequest.IncludeArtifacts` is marked `Deprecated`, and the `HistoryLength` deprecation notes point to `View` / `TaskView`. 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
added a commit
to a2aproject/a2a-go
that referenced
this pull request
Nov 29, 2026
… transports (#646) Depends on #644. Part of the A2A v1.1 work on `release/v1.1`. Carries the v1.1 core types over gRPC and REST, and maps the new error on every transport. No behavior changes: the SDK does not set or use the new fields yet. This PR addresses the following from the [v1.1 spec](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md): - [§3.2.7](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#327-task-generation-semantics), [§3.2.8](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#328-task-timeline-semantics), [§4.2.3](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#423-taskmessageupdateevent): pbconv maps generation, timeline, timestamps, artifact start/end generation, and the `messageUpdate` stream payload in both directions. - [§3.2.2](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#322-sendmessageconfiguration), [§3.1.3](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#313-get-task), [§3.1.6](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#316-subscribe-to-task), Task View ([A2A#2399](a2aproject/A2A#2399)): pbconv maps `ifGenerationMatch`, `taskView`, `currentGeneration`, `view`, `lastSeenGeneration`. - [§11.5 Query Parameter Naming](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#115-query-parameter-naming-for-request-parameters): REST client and server pass `currentGeneration`, `view` and `lastSeenGeneration` as query params; the REST stream parser reads `messageUpdate`. - [§5.4 Error Code Mappings](https://github.com/a2aproject/A2A/blob/dev-1.1/docs/specification.md#54-error-code-mappings): `ErrTaskGenerationMismatch` maps to JSON-RPC `-32010`, gRPC `ABORTED`, HTTP `409`, and is added to the errors whose message the server returns to clients. Backward compatibility: with 1.0 peers nothing changes on the wire. Our server never sets the new fields, so proto3 and JSON omit them, and 1.0 clients never send the new params. One edge case: a gRPC `ABORTED` without A2A error details now maps to `ErrTaskGenerationMismatch` instead of `ErrInternalError` (same code-only fallback as the other mappings). 1.0 servers do not return `ABORTED`.
darrelmiller
approved these changes
Dec 1, 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.
Clients polling a task after SendMessage with return_immediately have no way to skip artifacts on GetTask, so every poll can carry the full artifact payload. A plain bool defaulting to false keeps today's behavior (artifacts included) for every client and SDK, including those that ignore field presence.
Closes #2010