Skip to content

Commit 2962884

Browse files
committed
Updates
1 parent 83f3d86 commit 2962884

5 files changed

Lines changed: 37 additions & 37 deletions

File tree

docs/protocol/draft/schema.mdx

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,39 +1134,6 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
11341134

11351135
</ResponseField>
11361136

1137-
<a id="notifications-elicitation-complete"></a>
1138-
### <span class="font-mono">notifications/elicitation/complete</span>
1139-
1140-
**UNSTABLE**
1141-
1142-
This capability is not part of the spec yet, and may be removed or changed at any point.
1143-
1144-
Notification that a URL-based elicitation has completed.
1145-
1146-
#### <span class="font-mono">ElicitationCompleteNotification</span>
1147-
1148-
**UNSTABLE**
1149-
1150-
This capability is not part of the spec yet, and may be removed or changed at any point.
1151-
1152-
Notification sent by the agent when a URL-based elicitation is complete.
1153-
1154-
**Type:** Object
1155-
1156-
**Properties:**
1157-
1158-
<ResponseField name="_meta" type={"object | null"} >
1159-
The _meta property is reserved by ACP to allow clients and agents to attach additional
1160-
metadata to their interactions. Implementations MUST NOT make assumptions about values at
1161-
these keys.
1162-
1163-
See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
1164-
1165-
</ResponseField>
1166-
<ResponseField name="elicitationId" type={<a href="#elicitationid">ElicitationId</a>} required>
1167-
The ID of the elicitation that completed.
1168-
</ResponseField>
1169-
11701137
<a id="session-elicitation"></a>
11711138
### <span class="font-mono">session/elicitation</span>
11721139

@@ -1250,6 +1217,39 @@ See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/exte
12501217
The user's action in response to the elicitation.
12511218
</ResponseField>
12521219

1220+
<a id="session-elicitation-complete"></a>
1221+
### <span class="font-mono">session/elicitation/complete</span>
1222+
1223+
**UNSTABLE**
1224+
1225+
This capability is not part of the spec yet, and may be removed or changed at any point.
1226+
1227+
Notification that a URL-based elicitation has completed.
1228+
1229+
#### <span class="font-mono">ElicitationCompleteNotification</span>
1230+
1231+
**UNSTABLE**
1232+
1233+
This capability is not part of the spec yet, and may be removed or changed at any point.
1234+
1235+
Notification sent by the agent when a URL-based elicitation is complete.
1236+
1237+
**Type:** Object
1238+
1239+
**Properties:**
1240+
1241+
<ResponseField name="_meta" type={"object | null"} >
1242+
The _meta property is reserved by ACP to allow clients and agents to attach additional
1243+
metadata to their interactions. Implementations MUST NOT make assumptions about values at
1244+
these keys.
1245+
1246+
See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)
1247+
1248+
</ResponseField>
1249+
<ResponseField name="elicitationId" type={<a href="#elicitationid">ElicitationId</a>} required>
1250+
The ID of the elicitation that completed.
1251+
</ResponseField>
1252+
12531253
<a id="session-request_permission"></a>
12541254
### <span class="font-mono">session/request_permission</span>
12551255

schema/meta.unstable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"clientMethods": {
1919
"fs_read_text_file": "fs/read_text_file",
2020
"fs_write_text_file": "fs/write_text_file",
21-
"notification_elicitation_complete": "notifications/elicitation/complete",
2221
"session_elicitation": "session/elicitation",
22+
"session_elicitation_complete": "session/elicitation/complete",
2323
"session_request_permission": "session/request_permission",
2424
"session_update": "session/update",
2525
"terminal_create": "terminal/create",

schema/schema.unstable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,7 @@
15541554
},
15551555
"required": ["elicitationId"],
15561556
"type": "object",
1557-
"x-method": "notifications/elicitation/complete",
1557+
"x-method": "session/elicitation/complete",
15581558
"x-side": "client"
15591559
},
15601560
"ElicitationFormCapabilities": {

src/bin/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ starting with '$/' it is free to ignore the notification."
965965
#[cfg(feature = "unstable_elicitation")]
966966
"session/elicitation" => self.client.get("ElicitationRequest").unwrap(),
967967
#[cfg(feature = "unstable_elicitation")]
968-
"notifications/elicitation/complete" => {
968+
"session/elicitation/complete" => {
969969
self.client.get("ElicitationCompleteNotification").unwrap()
970970
}
971971
_ => panic!("Introduced a method? Add it here :)"),

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ impl ElicitationRequest {
966966
///
967967
/// The mode of elicitation, determining how user input is collected.
968968
#[cfg(feature = "unstable_elicitation")]
969-
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, PartialEq)]
969+
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
970970
#[serde(tag = "mode", rename_all = "snake_case")]
971971
#[schemars(extend("discriminator" = {"propertyName": "mode"}))]
972972
#[non_exhaustive]

0 commit comments

Comments
 (0)