@@ -327,6 +327,20 @@ export class Server<
327327 return this . request ( { method : 'sampling/createMessage' , params } , CreateMessageResultSchema , options ) ;
328328 }
329329
330+ /**
331+ * Creates a form elicitation request for the given parameters.
332+ * @deprecated Use `elicitFormInput` instead
333+ */
334+ async elicitInput ( params : Omit < ElicitRequestFormParams , 'mode' > , options ?: RequestOptions ) : Promise < ElicitResult > {
335+ return this . elicitFormInput ( params , options ) ;
336+ }
337+
338+ /**
339+ * Creates a form elicitation request for the given parameters.
340+ * @param params The parameters for the form elicitation request.
341+ * @param options Optional request options.
342+ * @returns The result of the elicitation request.
343+ */
330344 async elicitFormInput ( params : Omit < ElicitRequestFormParams , 'mode' > , options ?: RequestOptions ) : Promise < ElicitResult > {
331345 const mode = 'form' ;
332346 if ( ! this . _clientCapabilities ?. elicitation ?. [ mode ] ) {
@@ -360,6 +374,12 @@ export class Server<
360374 return result ;
361375 }
362376
377+ /**
378+ * Creates a URL elicitation request for the given parameters.
379+ * @param params The parameters for the URL elicitation request.
380+ * @param options Optional request options.
381+ * @returns The result of the elicitation request.
382+ */
363383 async elicitUrl ( params : Omit < ElicitRequestURLParams , 'mode' > , options ?: RequestOptions ) : Promise < ElicitResult > {
364384 const mode = 'url' ;
365385 if ( ! this . _clientCapabilities ?. elicitation ?. [ mode ] ) {
0 commit comments