Skip to main content

classify_generic

Function classify_generic 

Source
pub fn classify_generic(
    addressee: Option<&str>,
    has_cause: bool,
    has_correlation: bool,
    topic: &str,
    me: &AgentId,
) -> Dispatch
Expand description

What the agent me does with a generic record, one without an envelope, read from the topic named topic. Such a record has no kind, so a record that names both its causal parent and a correlation is a reply, and any other record is work unless it is addressed to another agent.