Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ These objects define the structure of data exchanged within the JSON-RPC methods

### 6.1. `Task` Object

Represents the stateful unit of work being processed by the A2A Server for an A2A Client. A task encapsulates the entire interaction related to a specific goal or request. A task which has reached a terminal state (completed, canceled, rejected, or failed) can't be restarted. For more information, refer to the [Life of a Task guide](./topics/life-of-a-task.md).
Represents the stateful unit of work being processed by the A2A Server for an A2A Client. A task encapsulates the entire interaction related to a specific goal or request. A task which has reached a terminal state (completed, canceled, rejected, or failed) can't be restarted. Tasks in completed state SHOULD use artifacts for returning the generated output to the clients. For more information, refer to the [Life of a Task guide](./topics/life-of-a-task.md).

```ts { .no-copy }
--8<-- "types/src/types.ts:Task"
Expand Down
3 changes: 2 additions & 1 deletion docs/topics/key-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Agent2Agent (A2A) protocol is built around a set of core concepts that defin

- Represents a single turn or unit of communication between a client and an agent.
- Messages have a `role` (either `"user"` for client-sent messages or `"agent"` for server-sent messages) and contain one or more `Part` objects that carry the actual content. `messageId` part of the Message object is a unique identifier for each message set by the sender of the message.
- Used for conveying instructions, context, questions, answers, or status updates that are not necessarily formal `Artifacts`.
- Used for conveying instructions, context, questions, answers, or status updates that are not necessarily formal `Artifacts` part of a `Task`.
- See details in the [Protocol Specification: Message Object](../specification.md#64-message-object).

- **Part:**
Expand All @@ -45,6 +45,7 @@ The Agent2Agent (A2A) protocol is built around a set of core concepts that defin
- **Artifact:**
- Represents a tangible output or result generated by the remote agent during the processing of a task.
- Examples include generated documents, images, spreadsheets, structured data results, or any other self-contained piece of information that is a direct result of the task.
- Tasks in completed state with outputs generated by a remote agent SHOULD use artifact for returning the response to the client.
- Artifacts are composed of one or more `Part` objects and can be streamed incrementally.
- See details in the [Protocol Specification: Artifact Object](../specification.md#67-artifact-object).

Expand Down
3 changes: 0 additions & 3 deletions specification/json/a2a.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export interface GetTaskPushNotificationConfigParams extends TaskIdParams {

// --8<-- [start:ListTaskPushNotificationConfigParams]
/** Parameters for getting list of pushNotificationConfigurations associated with a Task */
export interface ListTaskPushNotificationConfigParams extends TaskIdParams {}
export interface ListTaskPushNotificationConfigParams extends TaskIdParams { }
// --8<-- [end:ListTaskPushNotificationConfigParams]

// --8<-- [start:DeleteTaskPushNotificationConfigParams]
Expand All @@ -291,7 +291,7 @@ export interface DeleteTaskPushNotificationConfigParams extends TaskIdParams {
/**Configuration for the send message request. */
export interface MessageSendConfiguration {
/** Accepted output modalities by the client. */
acceptedOutputModes: string[];
acceptedOutputModes?: string[];
/** Number of recent messages to be retrieved. */
historyLength?: number;
/** Where the server should send notifications when disconnected. */
Expand Down