pub struct PromptConfig {
pub iteration: Option<u32>,
pub total_iterations: Option<u32>,
pub prompt_md_content: Option<String>,
pub prompt_and_plan: Option<(String, String)>,
pub prompt_plan_and_issues: Option<(String, String, String)>,
}Expand description
Configuration for prompt generation.
Groups related parameters to reduce function argument count.
Fields§
§iteration: Option<u32>The current iteration number (for developer iteration prompts).
total_iterations: Option<u32>The total number of iterations (for developer iteration prompts).
prompt_md_content: Option<String>PROMPT.md content for planning prompts.
prompt_and_plan: Option<(String, String)>(PROMPT.md, PLAN.md) content tuple for developer iteration prompts.
prompt_plan_and_issues: Option<(String, String, String)>(PROMPT.md, PLAN.md, ISSUES.md) content tuple for fix prompts.
Implementations§
Source§impl PromptConfig
impl PromptConfig
Sourcepub const fn with_iterations(self, iteration: u32, total: u32) -> Self
pub const fn with_iterations(self, iteration: u32, total: u32) -> Self
Set iteration numbers for developer iteration prompts.
Sourcepub fn with_prompt_md(self, content: String) -> Self
pub fn with_prompt_md(self, content: String) -> Self
Set PROMPT.md content for planning prompts.
Sourcepub fn with_prompt_and_plan(self, prompt: String, plan: String) -> Self
pub fn with_prompt_and_plan(self, prompt: String, plan: String) -> Self
Set (PROMPT.md, PLAN.md) content tuple for developer iteration prompts.
Sourcepub fn with_prompt_plan_and_issues(
self,
prompt: String,
plan: String,
issues: String,
) -> Self
pub fn with_prompt_plan_and_issues( self, prompt: String, plan: String, issues: String, ) -> Self
Set (PROMPT.md, PLAN.md, ISSUES.md) content tuple for fix prompts.
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§fn clone(&self) -> PromptConfig
fn clone(&self) -> PromptConfig
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 PromptConfig
impl Debug for PromptConfig
Source§impl Default for PromptConfig
impl Default for PromptConfig
Source§fn default() -> PromptConfig
fn default() -> PromptConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for PromptConfig
impl PartialEq for PromptConfig
impl Eq for PromptConfig
impl StructuralPartialEq for PromptConfig
Auto Trait Implementations§
impl Freeze for PromptConfig
impl RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl UnwindSafe for PromptConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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