pub struct GeneratedPrompt {
pub id: String,
pub system_prompt: String,
pub user_prompt: String,
pub context: PromptContext,
pub steering_rules_applied: Vec<String>,
pub estimated_tokens: usize,
}Expand description
A built prompt for AI generation
Fields§
§id: StringUnique identifier
system_prompt: StringSystem prompt (instructions for AI)
user_prompt: StringUser prompt (the actual request)
context: PromptContextContext included in the prompt
steering_rules_applied: Vec<String>Steering rules applied
estimated_tokens: usizeEstimated token count
Trait Implementations§
Source§impl Clone for GeneratedPrompt
impl Clone for GeneratedPrompt
Source§fn clone(&self) -> GeneratedPrompt
fn clone(&self) -> GeneratedPrompt
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 GeneratedPrompt
impl Debug for GeneratedPrompt
Source§impl<'de> Deserialize<'de> for GeneratedPrompt
impl<'de> Deserialize<'de> for GeneratedPrompt
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 GeneratedPrompt
impl RefUnwindSafe for GeneratedPrompt
impl Send for GeneratedPrompt
impl Sync for GeneratedPrompt
impl Unpin for GeneratedPrompt
impl UnwindSafe for GeneratedPrompt
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