Skip to main content

Crate llm_diff

Crate llm_diff 

Source
Expand description

§llm-diff

Output diffing and versioning primitives for LLM outputs.

Provides:

  • Line-level and structural JSON diffing (diff module).
  • A content-addressable version store with branch and lineage support (store module).
  • An append-only compliance audit log (audit module).

Re-exports§

pub use audit::AuditEvent;
pub use audit::AuditLog;
pub use diff::json_diff;
pub use diff::DiffOp;
pub use diff::TextDiff;
pub use error::DiffError;
pub use store::OutputVersion;
pub use store::VersionAnnotation;
pub use store::VersionStore;

Modules§

audit
Append-only audit log for compliance and legal review of output changes.
diff
Diff primitives: line-level text diff and structural JSON diff.
error
store
Content-addressable version store for LLM outputs.