Experimental
Asserts that task creation is supported for sampling/createMessage or elicitation/create. Used to implement the assertTaskCapability or assertTaskHandlerCapability abstract methods on Protocol.
sampling/createMessage
elicitation/create
assertTaskCapability
assertTaskHandlerCapability
The task requests capability object
The method being checked
'Server' or 'Client' for error messages
'Server'
'Client'
SdkError with SdkErrorCode.CapabilityNotSupported if the capability is not supported
SdkError
SdkErrorCode.CapabilityNotSupported
Asserts that task creation is supported for
sampling/createMessageorelicitation/create. Used to implement theassertTaskCapabilityorassertTaskHandlerCapabilityabstract methods on Protocol.