Skip to content

Commit 74c116a

Browse files
committed
Align with category documentaton
1 parent 72f8ccc commit 74c116a

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/protocol/draft/schema.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,6 +4322,11 @@ This capability is not part of the spec yet, and may be removed or changed at an
43224322

43234323
Well-known API protocol identifiers for LLM providers.
43244324

4325+
Agents and clients MUST handle unknown protocol identifiers gracefully.
4326+
4327+
Protocol names beginning with `_` are free for custom use, like other ACP extension methods.
4328+
Protocol names that do not begin with `_` are reserved for the ACP spec.
4329+
43254330
**Type:** Union
43264331

43274332
<ResponseField name="anthropic" type="string">

schema/schema.unstable.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3175,7 +3175,7 @@
31753175
"type": "string"
31763176
}
31773177
],
3178-
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nWell-known API protocol identifiers for LLM providers."
3178+
"description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nWell-known API protocol identifiers for LLM providers.\n\nAgents and clients MUST handle unknown protocol identifiers gracefully.\n\nProtocol names beginning with `_` are free for custom use, like other ACP extension methods.\nProtocol names that do not begin with `_` are reserved for the ACP spec."
31793179
},
31803180
"LoadSessionRequest": {
31813181
"description": "Request parameters for loading an existing session.\n\nOnly available if the Agent supports the `loadSession` capability.\n\nSee protocol docs: [Loading Sessions](https://agentclientprotocol.com/protocol/session-setup#loading-sessions)",

src/agent.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3389,6 +3389,11 @@ impl SetSessionModelResponse {
33893389
/// This capability is not part of the spec yet, and may be removed or changed at any point.
33903390
///
33913391
/// Well-known API protocol identifiers for LLM providers.
3392+
///
3393+
/// Agents and clients MUST handle unknown protocol identifiers gracefully.
3394+
///
3395+
/// Protocol names beginning with `_` are free for custom use, like other ACP extension methods.
3396+
/// Protocol names that do not begin with `_` are reserved for the ACP spec.
33923397
#[cfg(feature = "unstable_llm_providers")]
33933398
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
33943399
#[serde(rename_all = "snake_case")]
@@ -6046,7 +6051,7 @@ mod test_serialization {
60466051
SetProvidersRequest::new("main", LlmProtocol::Anthropic, "https://api.anthropic.com")
60476052
.headers(headers);
60486053

6049-
let debug = format!("{:?}", request);
6054+
let debug = format!("{request:?}");
60506055
assert!(debug.contains("[REDACTED]"));
60516056
assert!(!debug.contains("sk-secret-key"));
60526057
}

0 commit comments

Comments
 (0)