pub struct PromptTemplate {
pub intro: String,
pub doc_note: String,
pub task: Vec<String>,
pub focus: String,
pub cycle_note: String,
}Expand description
The language-neutral prompt scaffolding the Prompt-Generator wraps a
Preset in — the framing prose around a principle (intro, the doc-read
note, the task protocol, the focus line, and the dependency-cycle note).
Data, not code: it lives in the metric catalog (builtin.toml [prompt])
and is carried in the snapshot, so the CLI’s prompt format and the HTML
viewer’s Prompt Generator render the same text from one source. {id} in a
task line is substituted with the active preset id at render time.
Fields§
§intro: StringOne-line intent shown under the principle title.
doc_note: StringShown after the doc_url link: read the full principle first.
task: Vec<String>The task-protocol bullet lines (one entry per bullet).
focus: StringThe closing emphasis line.
cycle_note: StringNote prepended to a single dependency-cycle’s module list.
Trait Implementations§
Source§impl Clone for PromptTemplate
impl Clone for PromptTemplate
Source§fn clone(&self) -> PromptTemplate
fn clone(&self) -> PromptTemplate
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 PromptTemplate
impl Debug for PromptTemplate
Source§impl Default for PromptTemplate
impl Default for PromptTemplate
Source§fn default() -> PromptTemplate
fn default() -> PromptTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptTemplate
impl<'de> Deserialize<'de> for PromptTemplate
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 PromptTemplate
impl RefUnwindSafe for PromptTemplate
impl Send for PromptTemplate
impl Sync for PromptTemplate
impl Unpin for PromptTemplate
impl UnsafeUnpin for PromptTemplate
impl UnwindSafe for PromptTemplate
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