use-ai-role 0.0.1

AI role and participant metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.49%
    1 out of 67 items documented1 out of 22 items with examples
  • Size
  • Source code size: 10.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 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-role

AI role and participant metadata primitives for RustUse.

Experimental

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

Example

use use_ai_role::{AiInstructionAuthority, AiParticipantId, AiRoleName};

let role = AiRoleName::new("assistant")?;
let participant = AiParticipantId::new("participant-001")?;

assert_eq!(role.as_str(), "assistant");
assert_eq!(participant.value(), "participant-001");
assert_eq!("system".parse::<AiInstructionAuthority>()?, AiInstructionAuthority::System);
# Ok::<(), use_ai_role::AiRoleError>(())

Scope

  • Role names, participant identifiers, participant kinds, authority labels, role scopes, personas, and status labels.
  • Metadata only.

Non-goals

  • Authorization, access control, instruction merging, policy enforcement, or runtime identity management.

License

Licensed under either Apache-2.0 or MIT.