pub struct AttributedPrompt {
pub text: String,
pub source: String,
}Expand description
A prompt string paired with its source attribution.
The source field indicates where the prompt originated from:
"state:<name>"- state enter/exit prompt (e.g.,"state:working")"phase:<name>"- phase enter/exit prompt (e.g.,"phase:implement")"combo:<state>+<phase>"- state+phase combo prompt (e.g.,"combo:working+implement")"role:<name>"- role-specific prompt (e.g.,"role:worker")"workflow"- base workflow prompt (fallback)
Fields§
§text: String§source: StringTrait Implementations§
Source§impl Clone for AttributedPrompt
impl Clone for AttributedPrompt
Source§fn clone(&self) -> AttributedPrompt
fn clone(&self) -> AttributedPrompt
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 AttributedPrompt
impl Debug for AttributedPrompt
Source§impl PartialEq for AttributedPrompt
impl PartialEq for AttributedPrompt
Source§impl Serialize for AttributedPrompt
impl Serialize for AttributedPrompt
impl StructuralPartialEq for AttributedPrompt
Auto Trait Implementations§
impl Freeze for AttributedPrompt
impl RefUnwindSafe for AttributedPrompt
impl Send for AttributedPrompt
impl Sync for AttributedPrompt
impl Unpin for AttributedPrompt
impl UnsafeUnpin for AttributedPrompt
impl UnwindSafe for AttributedPrompt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more