@@ -1001,7 +1001,7 @@ private void executeToolAndRespondAsync(String requestId, String toolName, Strin
10011001 * future completes exceptionally.
10021002 */
10031003 private SessionUiHandlePendingElicitationParams buildElicitationCancelParams (String requestId ) {
1004- var cancelResult = new UIElicitationResponse (UIElicitationResponseAction .CANCEL , null );
1004+ var cancelResult = new UIElicitationResponse (UIElicitationResponseAction .CANCEL , null , null );
10051005 return new SessionUiHandlePendingElicitationParams (sessionId , requestId , cancelResult );
10061006 }
10071007
@@ -1213,7 +1213,7 @@ private void handleElicitationRequestAsync(ElicitationContext context, String re
12131213 ? result .getAction ().getValue ()
12141214 : ElicitationResultAction .CANCEL .getValue ();
12151215 var parsedAction = UIElicitationResponseAction .fromValue (actionStr );
1216- var elicitationResult = new UIElicitationResponse (parsedAction , result .getContent ());
1216+ var elicitationResult = new UIElicitationResponse (parsedAction , result .getContent (), null );
12171217 getRpc ().ui .handlePendingElicitation (
12181218 new SessionUiHandlePendingElicitationParams (sessionId , requestId , elicitationResult ));
12191219 } catch (Exception e ) {
@@ -1268,10 +1268,10 @@ private final class SessionUiApiImpl implements SessionUiApi {
12681268 @ Override
12691269 public CompletableFuture <ElicitationResult > elicitation (ElicitationParams params ) {
12701270 assertElicitation ();
1271- return getRpc ().ui .elicitation (new SessionUiElicitationParams (sessionId , params .getMessage (),
1271+ return getRpc ().ui .elicitation (new SessionUiElicitationParams (sessionId , null , params .getMessage (),
12721272 new UIElicitationSchema (params .getRequestedSchema ().getType (),
1273- params .getRequestedSchema ().getProperties (), params .getRequestedSchema ().getRequired ())))
1274- .thenApply (resp -> {
1273+ params .getRequestedSchema ().getProperties (), params .getRequestedSchema ().getRequired ()),
1274+ null , null )) .thenApply (resp -> {
12751275 var result = new ElicitationResult ();
12761276 if (resp .action () != null ) {
12771277 for (ElicitationResultAction a : ElicitationResultAction .values ()) {
@@ -1293,8 +1293,9 @@ public CompletableFuture<ElicitationResult> elicitation(ElicitationParams params
12931293 public CompletableFuture <Boolean > confirm (String message ) {
12941294 assertElicitation ();
12951295 var field = Map .of ("type" , "boolean" , "default" , (Object ) true );
1296- return getRpc ().ui .elicitation (new SessionUiElicitationParams (sessionId , message ,
1297- new UIElicitationSchema ("object" , Map .of ("confirmed" , (Object ) field ), List .of ("confirmed" ))))
1296+ return getRpc ().ui
1297+ .elicitation (new SessionUiElicitationParams (sessionId , null , message , new UIElicitationSchema (
1298+ "object" , Map .of ("confirmed" , (Object ) field ), List .of ("confirmed" )), null , null ))
12981299 .thenApply (resp -> {
12991300 if (resp .action () == UIElicitationResponseAction .ACCEPT && resp .content () != null ) {
13001301 Object val = resp .content ().get ("confirmed" );
@@ -1316,8 +1317,9 @@ public CompletableFuture<Boolean> confirm(String message) {
13161317 public CompletableFuture <String > select (String message , String [] options ) {
13171318 assertElicitation ();
13181319 var field = Map .of ("type" , (Object ) "string" , "enum" , (Object ) options );
1319- return getRpc ().ui .elicitation (new SessionUiElicitationParams (sessionId , message ,
1320- new UIElicitationSchema ("object" , Map .of ("selection" , (Object ) field ), List .of ("selection" ))))
1320+ return getRpc ().ui
1321+ .elicitation (new SessionUiElicitationParams (sessionId , null , message , new UIElicitationSchema (
1322+ "object" , Map .of ("selection" , (Object ) field ), List .of ("selection" )), null , null ))
13211323 .thenApply (resp -> {
13221324 if (resp .action () == UIElicitationResponseAction .ACCEPT && resp .content () != null ) {
13231325 Object val = resp .content ().get ("selection" );
@@ -1346,9 +1348,8 @@ public CompletableFuture<String> input(String message, InputOptions options) {
13461348 if (options .getDefaultValue () != null )
13471349 field .put ("default" , options .getDefaultValue ());
13481350 }
1349- return getRpc ().ui
1350- .elicitation (new SessionUiElicitationParams (sessionId , message ,
1351- new UIElicitationSchema ("object" , Map .of ("value" , (Object ) field ), List .of ("value" ))))
1351+ return getRpc ().ui .elicitation (new SessionUiElicitationParams (sessionId , null , message ,
1352+ new UIElicitationSchema ("object" , Map .of ("value" , (Object ) field ), List .of ("value" )), null , null ))
13521353 .thenApply (resp -> {
13531354 if (resp .action () == UIElicitationResponseAction .ACCEPT && resp .content () != null ) {
13541355 Object val = resp .content ().get ("value" );
@@ -1994,10 +1995,8 @@ public CompletableFuture<Void> abort() {
19941995 */
19951996 public CompletableFuture <Void > setModel (String model , String reasoningEffort ) {
19961997 ensureNotTerminated ();
1997- return getRpc ().model
1998- .switchTo (
1999- new SessionModelSwitchToParams (sessionId , model , reasoningEffort , null , null , null , null , null ))
2000- .thenApply (r -> null );
1998+ return getRpc ().model .switchTo (new SessionModelSwitchToParams (sessionId , model , reasoningEffort , null , null ,
1999+ null , null , null , null , null , null , null , null , null , null )).thenApply (r -> null );
20012000 }
20022001
20032002 /**
@@ -2077,8 +2076,10 @@ public CompletableFuture<Void> setModel(String model, String reasoningEffort, St
20772076 var generatedReasoningSummary = reasoningSummary == null
20782077 ? null
20792078 : com .github .copilot .generated .rpc .ReasoningSummary .fromValue (reasoningSummary );
2080- return getRpc ().model .switchTo (new SessionModelSwitchToParams (sessionId , model , reasoningEffort ,
2081- generatedReasoningSummary , null , generatedCapabilities , null , null )).thenApply (r -> null );
2079+ return getRpc ().model
2080+ .switchTo (new SessionModelSwitchToParams (sessionId , model , reasoningEffort , generatedReasoningSummary ,
2081+ null , generatedCapabilities , null , null , null , null , null , null , null , null , null ))
2082+ .thenApply (r -> null );
20822083 }
20832084
20842085 /**
0 commit comments