pub struct PluginPrompt {
pub name: String,
pub text: String,
}Expand description
UserMessage::plugin_prompt: what a host can show for a message a
plugin sent (CLI 2.1.317+).
Fields§
§name: StringThe plugin’s name as the wrapper the model reads prints it, on one
line and scrubbed; origin.name holds it raw.
text: StringThe prompt as hooks left it (prompts merged into one turn joined by
newlines) when message is exactly the wrapper the model reads
around that prompt; or the command the plugin ran as a person would
type it, such as /review 12, when message is only that command’s
tags. Can be more than one line; show all of it.
Trait Implementations§
Source§impl Clone for PluginPrompt
impl Clone for PluginPrompt
Source§impl Debug for PluginPrompt
impl Debug for PluginPrompt
Source§impl<'de> Deserialize<'de> for PluginPrompt
impl<'de> Deserialize<'de> for PluginPrompt
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
impl Eq for PluginPrompt
Source§impl PartialEq for PluginPrompt
impl PartialEq for PluginPrompt
Source§impl Serialize for PluginPrompt
impl Serialize for PluginPrompt
impl StructuralPartialEq for PluginPrompt
Auto Trait Implementations§
impl Freeze for PluginPrompt
impl RefUnwindSafe for PluginPrompt
impl Send for PluginPrompt
impl Sync for PluginPrompt
impl Unpin for PluginPrompt
impl UnsafeUnpin for PluginPrompt
impl UnwindSafe for PluginPrompt
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