@@ -4,16 +4,15 @@ use agent_client_protocol_schema::{
44 AuthenticateRequest , AuthenticateResponse , CancelNotification , Error , ExtNotification ,
55 ExtRequest , ExtResponse , InitializeRequest , InitializeResponse , LoadSessionRequest ,
66 LoadSessionResponse , NewSessionRequest , NewSessionResponse , PromptRequest , PromptResponse ,
7- Result , SetSessionModeRequest , SetSessionModeResponse ,
7+ Result , SetSessionConfigOptionRequest , SetSessionConfigOptionResponse , SetSessionModeRequest ,
8+ SetSessionModeResponse ,
89} ;
910#[ cfg( feature = "unstable_session_fork" ) ]
1011use agent_client_protocol_schema:: { ForkSessionRequest , ForkSessionResponse } ;
1112#[ cfg( feature = "unstable_session_list" ) ]
1213use agent_client_protocol_schema:: { ListSessionsRequest , ListSessionsResponse } ;
1314#[ cfg( feature = "unstable_session_resume" ) ]
1415use agent_client_protocol_schema:: { ResumeSessionRequest , ResumeSessionResponse } ;
15- #[ cfg( feature = "unstable_session_config_options" ) ]
16- use agent_client_protocol_schema:: { SetSessionConfigOptionRequest , SetSessionConfigOptionResponse } ;
1716#[ cfg( feature = "unstable_session_model" ) ]
1817use agent_client_protocol_schema:: { SetSessionModelRequest , SetSessionModelResponse } ;
1918use serde_json:: value:: RawValue ;
@@ -134,18 +133,13 @@ pub trait Agent {
134133 Err ( Error :: method_not_found ( ) )
135134 }
136135
137- /// **UNSTABLE**
138- ///
139- /// This capability is not part of the spec yet, and may be removed or changed at any point.
140- ///
141136 /// Sets the current value for a session configuration option.
142137 ///
143138 /// Configuration options allow agents to expose arbitrary selectors (like model choice,
144139 /// reasoning level, etc.) that clients can display and modify.
145140 ///
146141 /// The response returns the full list of configuration options with their current values,
147142 /// as changing one option may affect others.
148- #[ cfg( feature = "unstable_session_config_options" ) ]
149143 async fn set_session_config_option (
150144 & self ,
151145 _args : SetSessionConfigOptionRequest ,
@@ -246,7 +240,6 @@ impl<T: Agent> Agent for Rc<T> {
246240 ) -> Result < SetSessionModelResponse > {
247241 self . as_ref ( ) . set_session_model ( args) . await
248242 }
249- #[ cfg( feature = "unstable_session_config_options" ) ]
250243 async fn set_session_config_option (
251244 & self ,
252245 args : SetSessionConfigOptionRequest ,
@@ -306,7 +299,6 @@ impl<T: Agent> Agent for Arc<T> {
306299 ) -> Result < SetSessionModelResponse > {
307300 self . as_ref ( ) . set_session_model ( args) . await
308301 }
309- #[ cfg( feature = "unstable_session_config_options" ) ]
310302 async fn set_session_config_option (
311303 & self ,
312304 args : SetSessionConfigOptionRequest ,
0 commit comments