Skip to content

Commit f895259

Browse files
committed
changing idempotencySupported with idempotencyEnforced
1 parent 8216acf commit f895259

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/specification.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Specifies optional A2A protocol features supported by the agent.
322322
--8<-- "types/src/types.ts:AgentCapabilities"
323323
```
324324

325-
- **`idempotencySupported`**: When set to `true`, indicates that the agent supports messageId-based idempotency for new task creation. This enables the agent to detect and handle duplicate `messageId` values to prevent unintended duplicate task creation due to network failures or client retries. See [Section 7.1.2](#712-idempotency) for detailed behavior.
325+
- **`idempotencyEnforced`**: When set to `true`, indicates that the agent enforces messageId-based idempotency for new task creation. This enables the agent to detect and handle duplicate `messageId` values to prevent unintended duplicate task creation due to network failures or client retries. See [Section 7.1.2](#712-idempotency) for detailed behavior.
326326

327327
#### 5.5.2.1. `AgentExtension` Object
328328

@@ -731,9 +731,9 @@ A2A supports optional messageId-based idempotency to enable idempotent task crea
731731

732732
**Agent Requirements:**
733733

734-
- Agents **MAY** support idempotency by declaring `idempotencySupported: true` in their `AgentCapabilities`.
735-
- When `idempotencySupported` is `true`, agents **MUST** track `messageId` values for new task creation within the authenticated user/session scope.
736-
- When `idempotencySupported` is `false` or absent, agents **MAY** not support idempotency and do not track `messageId` values.
734+
- Agents **MAY** enforce idempotency by declaring `idempotencyEnforced: true` in their `AgentCapabilities`.
735+
- When `idempotencyEnforced` is `true`, agents **MUST** track `messageId` values for new task creation within the authenticated user/session scope.
736+
- When `idempotencyEnforced` is `false` or absent, agents **MAY** not enforce idempotency and do not track `messageId` values.
737737

738738
**Server Behavior:**
739739

@@ -1908,7 +1908,7 @@ _If the task were longer-running, the server might initially respond with `statu
19081908
```json
19091909
{
19101910
"capabilities": {
1911-
"idempotencySupported": true
1911+
"idempotencyEnforced": true
19121912
}
19131913
}
19141914
```

specification/json/a2a.json

Lines changed: 2 additions & 2 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export interface AgentCapabilities {
2929
pushNotifications?: boolean;
3030
/** Indicates if the agent provides a history of state transitions for a task. */
3131
stateTransitionHistory?: boolean;
32-
/** Indicates if the agent supports messageId-based idempotency for task creation. */
33-
idempotencySupported?: boolean;
32+
/** Indicates if the agent enforces messageId-based idempotency for task creation. */
33+
idempotencyEnforced?: boolean;
3434
/** A list of protocol extensions supported by the agent. */
3535
extensions?: AgentExtension[];
3636
}

0 commit comments

Comments
 (0)