Skip to contents

A stable identity for a persona prompt, reusing LLMR's content-hash convention. Two agents with the same brief and name hash identically; any wording change flips the hash.

Usage

hash_persona(persona, name = NULL)

Arguments

persona

Character scalar (the persona brief) or a persona_frame().

name

Optional agent name folded into the hash (two agents with the same brief but different display names are arguably different personas).

Value

A 64-character SHA-256 hex string (see LLMR::llm_hash()).