use-ai-memory 0.0.1

AI memory metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.1%
    1 out of 91 items documented1 out of 26 items with examples
  • Size
  • Source code size: 11.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.24 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ai
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-ai-memory

AI memory metadata primitives for RustUse.

Experimental

use-ai-memory is experimental while use-ai remains below 0.3.0.

Example

use use_ai_memory::{AiMemoryConfidence, AiMemoryId, AiMemoryKind};

let id = AiMemoryId::new("memory-001")?;
let confidence = AiMemoryConfidence::new(0.75)?;

assert_eq!(id.as_str(), "memory-001");
assert_eq!(confidence.value(), 0.75);
assert_eq!("policy controlled".parse::<use_ai_memory::AiMemoryRetentionKind>()?, use_ai_memory::AiMemoryRetentionKind::PolicyControlled);
assert_eq!(AiMemoryKind::Preference.as_str(), "preference");
# Ok::<(), use_ai_memory::AiMemoryError>(())

Scope

  • Memory identifiers, confidence scores, kinds, scopes, status, sources, retention, sensitivity, operation, and conflict labels.
  • Metadata only.

Non-goals

  • Storing, retrieving, merging, inferring, deleting, suppressing, or enforcing memory records.

License

Licensed under either Apache-2.0 or MIT.