pub struct LoopConfig {
pub name: String,
pub version: String,
pub description: String,
pub environment: Environment,
pub features: Features,
pub intent: Intent,
pub execution: Execution,
pub safety: Safety,
pub evolution: Evolution,
}Fields§
§name: StringLoop identity. Becomes the generated skill name.
version: String§description: String§environment: EnvironmentWhich deployment this config describes. Read before anything else, because it decides how strictly the rest is enforced.
features: FeaturesCoarse capability switches, each defaulting to the safe answer.
intent: IntentWhat the loop is for, and how anyone would know it worked.
execution: ExecutionHow the work gets done.
safety: SafetyWhat must not happen, and when this stops.
evolution: EvolutionHow the loop is allowed to change itself.
Implementations§
Source§impl LoopConfig
impl LoopConfig
pub fn goal_names(&self) -> Vec<&str>
pub fn blocking_validations_for(&self, target: &str) -> Vec<&Validation>
pub fn provider(&self, id: &str) -> Option<&ProviderSpec>
Sourcepub fn cascade_for(&self, tier: Tier) -> Vec<&ProviderSpec>
pub fn cascade_for(&self, tier: Tier) -> Vec<&ProviderSpec>
Resolve a tier to the ordered list of provider ids to try.
Sourcepub fn evolution_enabled(&self) -> bool
pub fn evolution_enabled(&self) -> bool
Whether self-evolution is on at both the feature switch and the section.
Two switches rather than one because they answer to different people:
features is an operator’s blanket answer for the machine, evolution
is the author’s answer for this loop. Either being off is off.
Trait Implementations§
Source§impl Clone for LoopConfig
impl Clone for LoopConfig
Source§impl Debug for LoopConfig
impl Debug for LoopConfig
Source§impl<'de> Deserialize<'de> for LoopConfig
impl<'de> Deserialize<'de> for LoopConfig
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
Source§impl JsonSchema for LoopConfig
impl JsonSchema for LoopConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LoopConfig
impl RefUnwindSafe for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
impl UnwindSafe for LoopConfig
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