pub struct ElicitationRequestedData {
pub elicitation_source: Option<String>,
pub message: String,
pub mode: Option<ElicitationRequestedMode>,
pub requested_schema: Option<ElicitationRequestedSchema>,
pub request_id: RequestId,
pub tool_call_id: Option<String>,
pub url: Option<String>,
}Expand description
Elicitation request; may be form-based (structured input) or URL-based (browser redirect)
Fields§
§elicitation_source: Option<String>The source that initiated the request (MCP server name, or absent for agent-initiated)
message: StringMessage describing what information is needed from the user
mode: Option<ElicitationRequestedMode>Elicitation mode; “form” for structured input, “url” for browser-based. Defaults to “form” when absent.
requested_schema: Option<ElicitationRequestedSchema>JSON Schema describing the form fields to present to the user (form mode only)
request_id: RequestIdUnique identifier for this elicitation request; used to respond via session.respondToElicitation()
tool_call_id: Option<String>Tool call ID from the LLM completion; used to correlate with CompletionChunk.toolCall.id for remote UIs
url: Option<String>URL to open in the user’s browser (url mode only)
Trait Implementations§
Source§impl Clone for ElicitationRequestedData
impl Clone for ElicitationRequestedData
Source§fn clone(&self) -> ElicitationRequestedData
fn clone(&self) -> ElicitationRequestedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElicitationRequestedData
impl Debug for ElicitationRequestedData
Source§impl<'de> Deserialize<'de> for ElicitationRequestedData
impl<'de> Deserialize<'de> for ElicitationRequestedData
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
Auto Trait Implementations§
impl Freeze for ElicitationRequestedData
impl RefUnwindSafe for ElicitationRequestedData
impl Send for ElicitationRequestedData
impl Sync for ElicitationRequestedData
impl Unpin for ElicitationRequestedData
impl UnsafeUnpin for ElicitationRequestedData
impl UnwindSafe for ElicitationRequestedData
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