def tag
import cswap-bend-cli@0.1.0.0/profswitch.bend as Profswitchimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/profile.bend as P
import cswap-bend-cli@0.1.0.0/policy/safe.bend as SF
50def tag(+p: P.Prof, +r: Json.Json) -> Json.Json:
51 Json.set("strategy", Json.JStr{SF.name(P.algo_base(p))}, Json.set("profile", Json.JStr{P.name_of(p)}, r))