pub enum PromptPart {
Text {
id: Option<String>,
text: String,
synthetic: Option<bool>,
ignored: Option<bool>,
time: Option<Value>,
metadata: Option<BTreeMap<String, Value>>,
},
Other(Value),
}Variants§
Text
Fields
Other(Value)
Escape hatch for current non-text prompt parts (file/agent/subtask). The outer request remains typed while this vertical slice avoids pretending unsupported OpenAPI unions are exhaustively generated.
Implementations§
Trait Implementations§
Source§impl Clone for PromptPart
impl Clone for PromptPart
Source§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
Source§impl PartialEq for PromptPart
impl PartialEq for PromptPart
Source§impl Serialize for PromptPart
impl Serialize for PromptPart
impl StructuralPartialEq for PromptPart
Auto Trait Implementations§
impl Freeze for PromptPart
impl RefUnwindSafe for PromptPart
impl Send for PromptPart
impl Sync for PromptPart
impl Unpin for PromptPart
impl UnsafeUnpin 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