pub struct ElicitationCapability {
pub schema_validation: Option<bool>,
}Expand description
Capability for handling elicitation requests from servers.
Elicitation allows servers to request interactive input from users during tool execution. This capability indicates that a client can handle elicitation requests and present appropriate UI to users for collecting the requested information.
Fields§
§schema_validation: Option<bool>Whether the client supports JSON Schema validation for elicitation responses. When true, the client will validate user input against the requested_schema before sending the response back to the server.
Trait Implementations§
Source§impl Clone for ElicitationCapability
impl Clone for ElicitationCapability
Source§impl Debug for ElicitationCapability
impl Debug for ElicitationCapability
Source§impl Default for ElicitationCapability
impl Default for ElicitationCapability
Source§impl<'de> Deserialize<'de> for ElicitationCapability
impl<'de> Deserialize<'de> for ElicitationCapability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ElicitationCapability
Available on crate feature schemars only.
impl JsonSchema for ElicitationCapability
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ElicitationCapability
impl PartialEq for ElicitationCapability
Source§impl Serialize for ElicitationCapability
impl Serialize for ElicitationCapability
impl StructuralPartialEq for ElicitationCapability
Auto Trait Implementations§
impl Freeze for ElicitationCapability
impl RefUnwindSafe for ElicitationCapability
impl Send for ElicitationCapability
impl Sync for ElicitationCapability
impl Unpin for ElicitationCapability
impl UnsafeUnpin for ElicitationCapability
impl UnwindSafe for ElicitationCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more