pub struct PromptInstanceSection {
pub id: String,
pub description: Option<String>,
pub strategy_type: Option<String>,
pub blocks: HashMap<String, Value>,
}Expand description
A system prompt instance — fills content into a strategy’s blocks.
Fields§
§id: StringInstance ID using {{...}} reference protocol.
description: Option<String>Description for existence check queries.
strategy_type: Option<String>References a strategy instance by {{...}} id.
blocks: HashMap<String, Value>Block content: keys are block names, values are text or “file:path”.
Uses #[serde(flatten)] to capture all unknown fields as block content.
Trait Implementations§
Source§impl Clone for PromptInstanceSection
impl Clone for PromptInstanceSection
Source§fn clone(&self) -> PromptInstanceSection
fn clone(&self) -> PromptInstanceSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PromptInstanceSection
impl Debug for PromptInstanceSection
Source§impl Default for PromptInstanceSection
impl Default for PromptInstanceSection
Source§fn default() -> PromptInstanceSection
fn default() -> PromptInstanceSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptInstanceSectionwhere
PromptInstanceSection: Default,
impl<'de> Deserialize<'de> for PromptInstanceSectionwhere
PromptInstanceSection: Default,
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 PromptInstanceSection
impl RefUnwindSafe for PromptInstanceSection
impl Send for PromptInstanceSection
impl Sync for PromptInstanceSection
impl Unpin for PromptInstanceSection
impl UnsafeUnpin for PromptInstanceSection
impl UnwindSafe for PromptInstanceSection
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