Skip to content

Commit 6f1d17b

Browse files
kthota-ga2a-botgemini-code-assist[bot]
authored
fix: Type fix and doc clarification (#877)
Release-As: 0.2.6 --------- Co-authored-by: a2a-bot <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 00558c3 commit 6f1d17b

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

docs/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ These objects define the structure of data exchanged within the JSON-RPC methods
287287

288288
### 6.1. `Task` Object
289289

290-
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).
290+
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).
291291

292292
```ts { .no-copy }
293293
--8<-- "types/src/types.ts:Task"

docs/topics/key-concepts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The Agent2Agent (A2A) protocol is built around a set of core concepts that defin
3131

3232
- Represents a single turn or unit of communication between a client and an agent.
3333
- 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.
34-
- Used for conveying instructions, context, questions, answers, or status updates that are not necessarily formal `Artifacts`.
34+
- Used for conveying instructions, context, questions, answers, or status updates that are not necessarily formal `Artifacts` that are part of a `Task`.
3535
- See details in the [Protocol Specification: Message Object](../specification.md#64-message-object).
3636

3737
- **Part:**
@@ -45,6 +45,7 @@ The Agent2Agent (A2A) protocol is built around a set of core concepts that defin
4545
- **Artifact:**
4646
- Represents a tangible output or result generated by the remote agent during the processing of a task.
4747
- 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.
48+
- Tasks in completed state SHOULD use artifact objects for returning the generated output to the clients.
4849
- Artifacts are composed of one or more `Part` objects and can be streamed incrementally.
4950
- See details in the [Protocol Specification: Artifact Object](../specification.md#67-artifact-object).
5051

specification/json/a2a.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export interface DeleteTaskPushNotificationConfigParams extends TaskIdParams {
291291
/**Configuration for the send message request. */
292292
export interface MessageSendConfiguration {
293293
/** Accepted output modalities by the client. */
294-
acceptedOutputModes: string[];
294+
acceptedOutputModes?: string[];
295295
/** Number of recent messages to be retrieved. */
296296
historyLength?: number;
297297
/** Where the server should send notifications when disconnected. */

0 commit comments

Comments
 (0)