pub struct Prompts {
pub all: String,
pub implement: String,
pub judge: String,
pub review: String,
pub fix: String,
}Expand description
Project-specific text appended to each node’s prompt.
Additive by construction. These fields cannot replace magi’s prompts,
only extend them, and that restriction is the whole design. The built-in
prompts carry the invariants the competition rests on: a judging prompt
names no authors, every structured answer must arrive as one fenced json
block, and a judge is told not to speculate about who wrote what. A config
that could overwrite them would let a typo silently un-blind the panel or
break the parser, and the symptom would be “the judges got worse” rather
than an error.
Repository-wide context belongs in AGENTS.md, which every agent already
reads from the checkout. Use these fields for the things a magi node
needs to know and a repository file cannot say - for instance that
reviewers here should ignore formatting because a hook owns it.
Fields§
§all: StringAppended to every node’s prompt.
implement: StringAppended for implementers.
judge: StringAppended for judges, both ranking and voting.
review: StringAppended for reviewers.
fix: StringAppended for the fixer.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prompts
impl<'de> Deserialize<'de> for Prompts
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>,
Auto Trait Implementations§
impl Forget for Prompts
impl Freeze for Prompts
impl Move for Prompts
impl RefUnwindSafe for Prompts
impl Send for Promptswhere
RawVecInner: Send,
impl Sync for Promptswhere
RawVecInner: Sync,
impl Unpin for Prompts
impl UnsafeUnpin for Prompts
impl UnwindSafe for Promptswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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