pub struct OffdeviceCallDescriptor {
pub kind: String,
pub provider: String,
pub model: String,
pub subsystem: String,
pub metadata: BTreeMap<String, Value>,
}Expand description
Describes the off-device call a producer is about to make. Passed to
OffdeviceCallHook::before_call so rules can match on
kind / provider / model / subsystem.
Fields§
§kind: StringWhat kind of call this is: "summarizer", "embedder",
"agent", etc. Drives the synthetic event’s data.kind field.
provider: StringProvider name as understood by the LLM router ("anthropic",
"openai", "voyage", …). Drives data.provider.
model: StringModel id ("claude-haiku-4-5", "voyage-3-large", …). Drives
data.model.
subsystem: StringWhich subsystem initiated the call ("memory_summarizer",
"memory_embedder", etc.). Drives data.subsystem.
metadata: BTreeMap<String, Value>Free-form metadata the producer wants to expose to the rule
matcher. Inserted under data.metadata.*. Keep small — the
matcher serialises every key/value pair on every match.
Implementations§
Source§impl OffdeviceCallDescriptor
impl OffdeviceCallDescriptor
Trait Implementations§
Source§impl Clone for OffdeviceCallDescriptor
impl Clone for OffdeviceCallDescriptor
Source§fn clone(&self) -> OffdeviceCallDescriptor
fn clone(&self) -> OffdeviceCallDescriptor
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 OffdeviceCallDescriptor
impl Debug for OffdeviceCallDescriptor
Source§impl<'de> Deserialize<'de> for OffdeviceCallDescriptor
impl<'de> Deserialize<'de> for OffdeviceCallDescriptor
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
impl Eq for OffdeviceCallDescriptor
Source§impl PartialEq for OffdeviceCallDescriptor
impl PartialEq for OffdeviceCallDescriptor
Source§fn eq(&self, other: &OffdeviceCallDescriptor) -> bool
fn eq(&self, other: &OffdeviceCallDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OffdeviceCallDescriptor
impl Serialize for OffdeviceCallDescriptor
impl StructuralPartialEq for OffdeviceCallDescriptor
Auto Trait Implementations§
impl Freeze for OffdeviceCallDescriptor
impl RefUnwindSafe for OffdeviceCallDescriptor
impl Send for OffdeviceCallDescriptor
impl Sync for OffdeviceCallDescriptor
impl Unpin for OffdeviceCallDescriptor
impl UnsafeUnpin for OffdeviceCallDescriptor
impl UnwindSafe for OffdeviceCallDescriptor
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