@@ -17,7 +17,7 @@ use serde_with::{DefaultOnError, VecSkipError, serde_as, skip_serializing_none};
1717use crate :: RequiredNullable ;
1818use crate :: {
1919 ClientCapabilities , ContentBlock , ExtNotification , ExtRequest , ExtResponse , IntoOption , Meta ,
20- ProtocolVersion , SessionId ,
20+ ProtocolVersion , SessionId , SkipListener ,
2121} ;
2222
2323#[ cfg( feature = "unstable_nes" ) ]
@@ -128,7 +128,7 @@ pub struct InitializeResponse {
128128 #[ serde( default ) ]
129129 pub agent_capabilities : AgentCapabilities ,
130130 /// Authentication methods supported by the agent.
131- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
131+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
132132 #[ serde( default ) ]
133133 pub auth_methods : Vec < AuthMethod > ,
134134 /// Information about the Agent name and version sent to the Client.
@@ -1024,7 +1024,7 @@ pub struct NewSessionResponse {
10241024 #[ serde( default ) ]
10251025 pub models : Option < SessionModelState > ,
10261026 /// Initial session configuration options if supported by the Agent.
1027- #[ serde_as( deserialize_as = "Option<VecSkipError<_>>" ) ]
1027+ #[ serde_as( deserialize_as = "Option<VecSkipError<_, SkipListener >>" ) ]
10281028 #[ serde( default ) ]
10291029 pub config_options : Option < Vec < SessionConfigOption > > ,
10301030 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
@@ -1200,7 +1200,7 @@ pub struct LoadSessionResponse {
12001200 #[ serde( default ) ]
12011201 pub models : Option < SessionModelState > ,
12021202 /// Initial session configuration options if supported by the Agent.
1203- #[ serde_as( deserialize_as = "Option<VecSkipError<_>>" ) ]
1203+ #[ serde_as( deserialize_as = "Option<VecSkipError<_, SkipListener >>" ) ]
12041204 #[ serde( default ) ]
12051205 pub config_options : Option < Vec < SessionConfigOption > > ,
12061206 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
@@ -1384,7 +1384,7 @@ pub struct ForkSessionResponse {
13841384 #[ serde( default ) ]
13851385 pub models : Option < SessionModelState > ,
13861386 /// Initial session configuration options if supported by the Agent.
1387- #[ serde_as( deserialize_as = "Option<VecSkipError<_>>" ) ]
1387+ #[ serde_as( deserialize_as = "Option<VecSkipError<_, SkipListener >>" ) ]
13881388 #[ serde( default ) ]
13891389 pub config_options : Option < Vec < SessionConfigOption > > ,
13901390 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
@@ -1574,7 +1574,7 @@ pub struct ResumeSessionResponse {
15741574 #[ serde( default ) ]
15751575 pub models : Option < SessionModelState > ,
15761576 /// Initial session configuration options if supported by the Agent.
1577- #[ serde_as( deserialize_as = "Option<VecSkipError<_>>" ) ]
1577+ #[ serde_as( deserialize_as = "Option<VecSkipError<_, SkipListener >>" ) ]
15781578 #[ serde( default ) ]
15791579 pub config_options : Option < Vec < SessionConfigOption > > ,
15801580 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
@@ -1817,7 +1817,7 @@ impl ListSessionsRequest {
18171817#[ non_exhaustive]
18181818pub struct ListSessionsResponse {
18191819 /// Array of session information objects
1820- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
1820+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
18211821 pub sessions : Vec < SessionInfo > ,
18221822 /// Opaque cursor token. If present, pass this in the next request's cursor parameter
18231823 /// to fetch the next page. If absent, there are no more results.
@@ -1962,7 +1962,7 @@ pub struct SessionModeState {
19621962 /// The current mode the Agent is in.
19631963 pub current_mode_id : SessionModeId ,
19641964 /// The set of modes that the Agent can operate in
1965- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
1965+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
19661966 pub available_modes : Vec < SessionMode > ,
19671967 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
19681968 /// metadata to their interactions. Implementations MUST NOT make assumptions about values at
@@ -2663,7 +2663,7 @@ impl SetSessionConfigOptionRequest {
26632663#[ non_exhaustive]
26642664pub struct SetSessionConfigOptionResponse {
26652665 /// The full set of configuration options and their current values.
2666- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
2666+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
26672667 pub config_options : Vec < SessionConfigOption > ,
26682668 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
26692669 /// metadata to their interactions. Implementations MUST NOT make assumptions about values at
@@ -3255,7 +3255,7 @@ pub struct SessionModelState {
32553255 /// The current model the Agent is in.
32563256 pub current_model_id : ModelId ,
32573257 /// The set of models that the Agent can use
3258- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
3258+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
32593259 pub available_models : Vec < ModelInfo > ,
32603260 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
32613261 /// metadata to their interactions. Implementations MUST NOT make assumptions about values at
@@ -3531,7 +3531,7 @@ pub struct ProviderInfo {
35313531 /// Provider identifier, for example "main" or "openai".
35323532 pub id : String ,
35333533 /// Supported protocol types for this provider.
3534- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
3534+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
35353535 pub supported : Vec < LlmProtocol > ,
35363536 /// Whether this provider is mandatory and cannot be disabled via `providers/disable`.
35373537 /// If true, clients must not call `providers/disable` for this id.
@@ -3632,7 +3632,7 @@ impl ListProvidersRequest {
36323632#[ non_exhaustive]
36333633pub struct ListProvidersResponse {
36343634 /// Configurable providers with current routing info suitable for UI display.
3635- #[ serde_as( deserialize_as = "VecSkipError<_>" ) ]
3635+ #[ serde_as( deserialize_as = "VecSkipError<_, SkipListener >" ) ]
36363636 pub providers : Vec < ProviderInfo > ,
36373637 /// The _meta property is reserved by ACP to allow clients and agents to attach additional
36383638 /// metadata to their interactions. Implementations MUST NOT make assumptions about values at
0 commit comments