elicitation example
This commit is contained in:
parent
77a284c1ef
commit
04cbbfbb0d
1 changed files with 891 additions and 2 deletions
|
|
@ -303,6 +303,14 @@ export class Client<
|
|||
}
|
||||
break;
|
||||
|
||||
case "elicitation/create":
|
||||
if (!this._capabilities.elicitation) {
|
||||
throw new Error(
|
||||
`Client does not support elicitation capability (required for ${method})`,
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case "roots/list":
|
||||
if (!this._capabilities.roots) {
|
||||
throw new Error(
|
||||
|
|
|
|||
Loading…
Reference in a new issue