Skip to main content

present

Function present 

Source
pub fn present(
    value: Value,
    mode: PresentationMode,
    now_unix_seconds: i64,
) -> Value
Expand description

Transform a successful verb result value according to the given PresentationMode.

  • Verbose / Human: returns value unchanged.
  • Agent: applies UUID shortening, timestamp compaction, empty-field dropping, lifecycle-null preservation, and score truncation.

now_unix_seconds is sampled once per response and passed through so all relative datetime renderings within a response use the same instant.