#[non_exhaustive]pub enum ElicitKind {
Authorization {
tool_name: String,
paths: Vec<PathBuf>,
tool_use_id: Option<String>,
origin: Option<PromptOrigin>,
},
Clarification {
header: Option<String>,
tool_use_id: Option<String>,
},
Import {
sources: Vec<String>,
},
McpServer {
server: String,
mode: McpElicitMode,
tool_use_id: Option<String>,
limited: bool,
},
}Expand description
What is being asked, and how the answer will be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Authorization
May this tool call run? The answer is the host’s permission decision
(runtime::agent::PermissionDecision’s wire form).
Fields
§
origin: Option<PromptOrigin>The plugin command whose call it is; None for the model’s own.
Clarification
The model wants something clarified before it continues. The answer is either one of the request’s option keys or free text, as a JSON string.
Fields
Import
Shall configuration detected from another agent tool be imported? The answer is yes or no.
McpServer
An MCP server asks the user something during one of its tool calls.
Its message, schema and URL are the server’s words, not the engine’s.
The answer is a McpElicitationAnswer.
Trait Implementations§
Source§impl Clone for ElicitKind
impl Clone for ElicitKind
Source§impl Debug for ElicitKind
impl Debug for ElicitKind
impl Eq for ElicitKind
Source§impl PartialEq for ElicitKind
impl PartialEq for ElicitKind
impl StructuralPartialEq for ElicitKind
Auto Trait Implementations§
impl Forget for ElicitKind
impl Freeze for ElicitKind
impl Move for ElicitKind
impl RefUnwindSafe for ElicitKind
impl Send for ElicitKind
impl Sync for ElicitKind
impl Unpin for ElicitKind
impl UnsafeUnpin for ElicitKind
impl UnwindSafe for ElicitKind
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