use-ai-context 0.0.1

AI context metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.25%
    1 out of 80 items documented1 out of 34 items with examples
  • Size
  • Source code size: 11.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 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-context

AI context metadata primitives for RustUse.

Experimental

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

Example

use use_ai_context::{AiContextItemKind, AiContextWindow, AiContextWindowSize};

let size = AiContextWindowSize::new(8192)?;
let window = AiContextWindow::new(size);

assert_eq!(window.size().value(), 8192);
assert_eq!("web page".parse::<AiContextItemKind>()?, AiContextItemKind::WebPage);
# Ok::<(), use_ai_context::AiContextError>(())

Scope

  • Context identifiers, item identifiers, citations, window sizes, item kinds, sources, priorities, fit, and grounding labels.
  • Metadata only.

Non-goals

  • Retrieval, summarization, truncation, storage, ranking, citation verification, or network access.

License

Licensed under either Apache-2.0 or MIT.