Skip to main content

finish_skipped

Function finish_skipped 

Source
fn finish_skipped(
    mstore: &Store,
    broker: &Broker,
    existing: &AgentDefinition,
    create_stub: bool,
    now: i64,
) -> AgentDefineResult
Expand description

if_exists=skip on an existing definition. Honors create_instance_stub even on skip: a definition created with create_instance_stub=false (or imported another way) might not have a stub yet, and a later idempotent call with create_instance_stub=true should make it visible in My Agents. agents:changed fires only when the stub was actually newly inserted.