pub struct ComponentMeta {
pub kind: ComponentKind,
pub description: String,
pub language: Option<String>,
pub constraints: Option<HashMap<String, String>>,
}Expand description
Metadata for a single candidate component.
Fields§
§kind: ComponentKindWhat kind of content this component contains.
description: StringHuman-readable description of what this component controls. Included in the meta-prompt to give the reflection LM context.
language: Option<String>Optional language hint for code components (e.g., “python”, “rust”, “toml”).
constraints: Option<HashMap<String, String>>Optional constraints for config components.
e.g., {"DEPTH": "integer, 1-32", "LEARNING_RATE": "float, 1e-5 to 1.0"}
Implementations§
Trait Implementations§
Source§impl Clone for ComponentMeta
impl Clone for ComponentMeta
Source§fn clone(&self) -> ComponentMeta
fn clone(&self) -> ComponentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComponentMeta
impl Debug for ComponentMeta
Source§impl<'de> Deserialize<'de> for ComponentMeta
impl<'de> Deserialize<'de> for ComponentMeta
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 ComponentMeta
impl RefUnwindSafe for ComponentMeta
impl Send for ComponentMeta
impl Sync for ComponentMeta
impl Unpin for ComponentMeta
impl UnsafeUnpin for ComponentMeta
impl UnwindSafe for ComponentMeta
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