32 releases
| new 0.1.17 | Mar 5, 2026 |
|---|---|
| 0.1.16 | Mar 4, 2026 |
| 0.1.13 | Feb 11, 2026 |
| 0.0.14 | Jan 27, 2026 |
#2629 in Development tools
206 downloads per month
Used in 29 crates
(24 directly)
110KB
3.5K
SLoC
systemprompt-identifiers
Core identifier types for systemprompt.io OS.
Overview
Part of the Shared layer in the systemprompt.io architecture.
Provides strongly-typed wrappers for all domain identifiers, ensuring type safety and preventing accidental mixing of different ID types.
Installation
Add to your Cargo.toml:
[dependencies]
systemprompt-identifiers = "0.0.1"
Quick Example
use systemprompt_identifiers::{UserId, TaskId, ContextId};
let user_id = UserId::new();
let task_id = TaskId::new();
let context_id = ContextId::new();
println!("User: {}, Task: {}, Context: {}", user_id, task_id, context_id);
Types
SessionId- User session identifierUserId- User identifierAgentId- Agent UUID identifierAgentName- Agent name stringTaskId- Task identifierContextId- Conversation context identifierTraceId- Distributed tracing identifierClientId- OAuth client identifierMcpExecutionId- MCP execution tracking IDMcpServerId- MCP server nameSkillId- Skill identifierSourceId- Content source identifierCategoryId- Content category identifierJwtToken- JWT token wrapper
Usage
All ID types implement:
Clone,Debug,PartialEq,Eq,HashSerialize,Deserialize(with#[serde(transparent)])AsRef<str>,Display
Feature Flags
| Feature | Default | Description |
|---|---|---|
sqlx |
No | SQLx type implementations for database queries |
Dependencies
serde- Serializationuuid- UUID generationschemars- JSON schema generation
License
FSL-1.1-ALv2 - See LICENSE for details.
Dependencies
~2–20MB
~226K SLoC