use-ai-model 0.0.1

AI model metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.08%
    1 out of 93 items documented1 out of 37 items with examples
  • Size
  • Source code size: 12.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 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-model

AI model metadata primitives for RustUse.

Experimental

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

Example

use use_ai_model::{AiModelContextWindow, AiModelKind, AiModelName};

let name = AiModelName::new("reasoning-chat")?;
let context = AiModelContextWindow::new(128_000)?;

assert_eq!(name.as_str(), "reasoning-chat");
assert_eq!(context.value(), 128_000);
assert_eq!("image generation".parse::<AiModelKind>()?, AiModelKind::ImageGeneration);
# Ok::<(), use_ai_model::AiModelError>(())

Scope

  • Model names, identifiers, families, context windows, output limits, kind, modality, interface, reasoning, deployment, and lifecycle labels.
  • Metadata only.

Non-goals

  • Loading models, routing requests, tokenization, pricing, inference, embeddings, or provider calls.

License

Licensed under either Apache-2.0 or MIT.