use-ai-provider 0.0.1

AI provider and endpoint metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.16%
    1 out of 86 items documented1 out of 31 items with examples
  • Size
  • Source code size: 10.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-provider

AI provider and endpoint metadata primitives for RustUse.

Experimental

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

Example

use use_ai_provider::{AiApiMode, AiProviderKind, AiProviderName};

let provider = AiProviderName::new("local-runtime")?;

assert_eq!(provider.as_str(), "local-runtime");
assert_eq!("hosted api".parse::<AiProviderKind>()?, AiProviderKind::HostedApi);
assert_eq!(AiApiMode::Streaming.as_str(), "streaming");
# Ok::<(), use_ai_provider::AiProviderError>(())

Scope

  • Provider names and identifiers, endpoint names, provider and endpoint kinds, API modes, rate limits, quotas, billing units, and region labels.
  • Metadata only.

Non-goals

  • Authentication, network calls, quota tracking, billing calculation, request routing, or provider SDKs.

License

Licensed under either Apache-2.0 or MIT.