Struct Placement Intent
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct PlacementIntent {
pub block_id: String,
pub target: PlacementTarget,
pub stability_score: f64,
pub scope_label: SharingScope,
}
Context placement optimization intent.
Recommends where a prompt block should be placed within the prompt structure for optimal caching.
Fields
block_id: String
Identifier of the prompt block to place.
target: PlacementTarget
Recommended placement target.
stability_score: f64
Stability score of the block [0.0, 1.0].
scope_label: SharingScope
Sharing scope for the placed content.
Trait Implementations
impl Clone for PlacementIntent
impl Clone for PlacementIntent
clone
fn clone(&self) -> PlacementIntent
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for PlacementIntent
impl Debug for PlacementIntent
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for PlacementIntent
impl<'de> Deserialize<'de> for PlacementIntent
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for PlacementIntent
impl PartialEq for PlacementIntent
eq
fn eq(&self, other: &PlacementIntent) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for PlacementIntent
impl Serialize for PlacementIntent
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for PlacementIntent
impl StructuralPartialEq for PlacementIntent