pub enum PromptPart {
Text {
text: String,
synthetic: Option<bool>,
ignored: Option<bool>,
metadata: Option<Value>,
},
File {
mime: String,
url: String,
filename: Option<String>,
},
Agent {
name: String,
},
Subtask {
prompt: String,
description: String,
agent: String,
command: Option<String>,
},
}Expand description
A content part in a prompt request.
Variants§
Trait Implementations§
Source§impl Clone for PromptPart
impl Clone for PromptPart
Source§fn clone(&self) -> PromptPart
fn clone(&self) -> PromptPart
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptPart
impl Debug for PromptPart
Source§impl<'de> Deserialize<'de> for PromptPart
impl<'de> Deserialize<'de> for PromptPart
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 PromptPart
impl RefUnwindSafe for PromptPart
impl Send for PromptPart
impl Sync for PromptPart
impl Unpin for PromptPart
impl UnwindSafe for PromptPart
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