pub struct TileRegistry { /* private fields */ }Expand description
Tile registry — stores discovered tiles for use by larger models.
Implementations§
Source§impl TileRegistry
impl TileRegistry
pub fn new() -> Self
Sourcepub fn register(&mut self, tile: DiscoveryTile)
pub fn register(&mut self, tile: DiscoveryTile)
Register a discovered tile.
Sourcepub fn get(&self, role: &str) -> Option<&DiscoveryTile>
pub fn get(&self, role: &str) -> Option<&DiscoveryTile>
Get a tile for a role.
Sourcepub fn get_params(&self, role: &str) -> TileParams
pub fn get_params(&self, role: &str) -> TileParams
Get the optimal parameters for a role (for conditioning larger models).
Sourcepub fn conditioning_prompt(&self, role: &str) -> String
pub fn conditioning_prompt(&self, role: &str) -> String
Generate a conditioning prompt for a larger model. This is how the seed’s discovered inner logic propagates upward.
Sourcepub fn list(&self) -> Vec<&DiscoveryTile>
pub fn list(&self) -> Vec<&DiscoveryTile>
List all registered tiles.
Trait Implementations§
Source§impl Debug for TileRegistry
impl Debug for TileRegistry
Source§impl Default for TileRegistry
impl Default for TileRegistry
Source§fn default() -> TileRegistry
fn default() -> TileRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TileRegistry
impl RefUnwindSafe for TileRegistry
impl Send for TileRegistry
impl Sync for TileRegistry
impl Unpin for TileRegistry
impl UnsafeUnpin for TileRegistry
impl UnwindSafe for TileRegistry
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