@@ -727,7 +727,7 @@ private async Task HandleElicitationRequestAsync(ElicitationContext context, str
727727 try
728728 {
729729 var result = await handler ( context ) ;
730- await Rpc . Ui . HandlePendingElicitationAsync ( requestId , new UiElicitationResponse
730+ await Rpc . Ui . HandlePendingElicitationAsync ( requestId , new UIElicitationResponse
731731 {
732732 Action = result . Action ,
733733 Content = result . Content
@@ -738,9 +738,9 @@ private async Task HandleElicitationRequestAsync(ElicitationContext context, str
738738 // User handler can throw any exception — attempt to cancel so the request doesn't hang.
739739 try
740740 {
741- await Rpc . Ui . HandlePendingElicitationAsync ( requestId , new UiElicitationResponse
741+ await Rpc . Ui . HandlePendingElicitationAsync ( requestId , new UIElicitationResponse
742742 {
743- Action = ElicitationResponseAction . Cancel
743+ Action = UIElicitationResponseAction . Cancel
744744 } ) ;
745745 }
746746 catch ( Exception innerEx ) when ( innerEx is IOException or ObjectDisposedException )
@@ -771,7 +771,7 @@ private sealed class SessionUiApiImpl(CopilotSession session) : ISessionUiApi
771771 public async Task < ElicitationResult > ElicitationAsync ( ElicitationParams elicitationParams , CancellationToken cancellationToken )
772772 {
773773 session . AssertElicitation ( ) ;
774- var schema = new UiElicitationSchema
774+ var schema = new UIElicitationSchema
775775 {
776776 Type = elicitationParams . RequestedSchema . Type ,
777777 Properties = elicitationParams . RequestedSchema . Properties ,
@@ -784,7 +784,7 @@ public async Task<ElicitationResult> ElicitationAsync(ElicitationParams elicitat
784784 public async Task < bool > ConfirmAsync ( string message , CancellationToken cancellationToken )
785785 {
786786 session . AssertElicitation ( ) ;
787- var schema = new UiElicitationSchema
787+ var schema = new UIElicitationSchema
788788 {
789789 Type = "object" ,
790790 Properties = new Dictionary < string , object >
@@ -794,7 +794,7 @@ public async Task<bool> ConfirmAsync(string message, CancellationToken cancellat
794794 Required = [ "confirmed" ]
795795 } ;
796796 var result = await session . Rpc . Ui . ElicitationAsync ( message , schema , cancellationToken ) ;
797- if ( result . Action == ElicitationResponseAction . Accept
797+ if ( result . Action == UIElicitationResponseAction . Accept
798798 && result . Content != null
799799 && result . Content . TryGetValue ( "confirmed" , out var val ) )
800800 {
@@ -812,7 +812,7 @@ public async Task<bool> ConfirmAsync(string message, CancellationToken cancellat
812812 public async Task < string ? > SelectAsync ( string message , string [ ] options , CancellationToken cancellationToken )
813813 {
814814 session . AssertElicitation ( ) ;
815- var schema = new UiElicitationSchema
815+ var schema = new UIElicitationSchema
816816 {
817817 Type = "object" ,
818818 Properties = new Dictionary < string , object >
@@ -822,7 +822,7 @@ public async Task<bool> ConfirmAsync(string message, CancellationToken cancellat
822822 Required = [ "selection" ]
823823 } ;
824824 var result = await session . Rpc . Ui . ElicitationAsync ( message , schema , cancellationToken ) ;
825- if ( result . Action == ElicitationResponseAction . Accept
825+ if ( result . Action == UIElicitationResponseAction . Accept
826826 && result . Content != null
827827 && result . Content . TryGetValue ( "selection" , out var val ) )
828828 {
@@ -847,14 +847,14 @@ public async Task<bool> ConfirmAsync(string message, CancellationToken cancellat
847847 if ( options ? . Format != null ) field [ "format" ] = options . Format ;
848848 if ( options ? . Default != null ) field [ "default" ] = options . Default ;
849849
850- var schema = new UiElicitationSchema
850+ var schema = new UIElicitationSchema
851851 {
852852 Type = "object" ,
853853 Properties = new Dictionary < string , object > { [ "value" ] = field } ,
854854 Required = [ "value" ]
855855 } ;
856856 var result = await session . Rpc . Ui . ElicitationAsync ( message , schema , cancellationToken ) ;
857- if ( result . Action == ElicitationResponseAction . Accept
857+ if ( result . Action == UIElicitationResponseAction . Accept
858858 && result . Content != null
859859 && result . Content . TryGetValue ( "value" , out var val ) )
860860 {
0 commit comments