Download codex-rs/protocol/src/memory_version.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/memory_version.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/protocol/src/memory_version.rs
-
curl -L -o memory_version.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/protocol/src/memory_version.rs
600 Bytes
| //! Selects a coherent memory pipeline and its generated-artifact namespace. | |
| use schemars::JsonSchema; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub enum MemoryVersion { | |
| V1, | |
| V2, | |
| } | |
| impl MemoryVersion { | |
| /// Sibling roots keep v1 cleanup and rollback independent of v2 artifacts. | |
| pub fn directory_name(self) -> &'static str { | |
| match self { | |
| Self::V1 => "memories", | |
| Self::V2 => "memories_v2", | |
| } | |
| } | |
| } | |