pub struct Prompt {
pub name: &'static str,
pub feature: Feature,
pub description: Option<String>,
pub arguments: Vec<PromptArgument>,
pub schema: Arc<JsonObject>,
pub looks: Looks,
}Expand description
A prompt a module offers: messages a user picks to start a conversation with, filled from arguments.
Fields§
§name: &'static str§feature: Feature§description: Option<String>The arguments type’s doc comment.
arguments: Vec<PromptArgument>§schema: Arc<JsonObject>The arguments’ JSON Schema, for conformance: MCP prompt arguments are strings.
looks: LooksTrait Implementations§
Auto Trait Implementations§
impl Forget for Prompt
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnsafeUnpin for Prompt
impl UnwindSafe for Prompt
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