pub enum BlueprintComposition {
Composed,
Documented,
}Expand description
How the composite-program blueprint synthesizer
turns its annotated recipe template into the program shown to the user.
Issue #340 asked the engine to “try all directions” of program synthesis and
let the user switch between them. A blueprint recipe is stored as an annotated
template whose optional sub-tasks (error handling, comments, …) are wrapped in
region:<capability> markers; every emitted program is a projection of that
template (never the raw, marker-bearing string — markers are always stripped).
This knob selects which projection to emit:
Composed(default, the most promising direction): the program is assembled from exactly the capabilities the request decomposed into — optional regions whose capability the prompt did not ask for are dropped, and when comments were not requested the documentation is stripped too. The same recipe therefore yields genuinely different programs for different requests, which is the honest, anti-memoization demonstration that the code is composed from the decomposition (NON-GOALS.md).Documented: always emit the fully documented program with every optional region present, regardless of which sub-tasks the request named. Useful as a stable reference and for users who want the maximal annotated program every time.
Variants§
Composed
Project the program from the detected capabilities (default).
Documented
Always emit the fully documented program with every region present.
Implementations§
Source§impl BlueprintComposition
impl BlueprintComposition
Sourcepub const fn slug(self) -> &'static str
pub const fn slug(self) -> &'static str
Stable slug used in the event log and the demo preference value.
Sourcepub fn from_value(raw: &str) -> Option<Self>
pub fn from_value(raw: &str) -> Option<Self>
Parse a configuration value (env var or demo preference). Accepts the
canonical slugs plus a few intuitive aliases; returns None for anything
unrecognized so callers keep the default.
Trait Implementations§
Source§impl Clone for BlueprintComposition
impl Clone for BlueprintComposition
Source§fn clone(&self) -> BlueprintComposition
fn clone(&self) -> BlueprintComposition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BlueprintComposition
Source§impl Debug for BlueprintComposition
impl Debug for BlueprintComposition
Source§impl Default for BlueprintComposition
impl Default for BlueprintComposition
Source§fn default() -> BlueprintComposition
fn default() -> BlueprintComposition
impl Eq for BlueprintComposition
Source§impl PartialEq for BlueprintComposition
impl PartialEq for BlueprintComposition
impl StructuralPartialEq for BlueprintComposition
Auto Trait Implementations§
impl Freeze for BlueprintComposition
impl RefUnwindSafe for BlueprintComposition
impl Send for BlueprintComposition
impl Sync for BlueprintComposition
impl Unpin for BlueprintComposition
impl UnsafeUnpin for BlueprintComposition
impl UnwindSafe for BlueprintComposition
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,
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
key and return true if they are equal.