| Crates.io | systemprompt-identifiers |
| lib.rs | systemprompt-identifiers |
| version | 0.0.11 |
| created_at | 2026-01-21 17:11:47.202831+00 |
| updated_at | 2026-01-25 21:41:19.558054+00 |
| description | Core identifier types for systemprompt.io OS |
| homepage | https://systemprompt.io |
| repository | https://github.com/systempromptio/systemprompt-core |
| max_upload_size | |
| id | 2059713 |
| size | 171,975 |
Core identifier types for systemprompt.io OS.
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.
Add to your Cargo.toml:
[dependencies]
systemprompt-identifiers = "0.0.1"
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);
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 wrapperAll ID types implement:
Clone, Debug, PartialEq, Eq, HashSerialize, Deserialize (with #[serde(transparent)])AsRef<str>, Display| Feature | Default | Description |
|---|---|---|
sqlx |
No | SQLx type implementations for database queries |
serde - Serializationuuid - UUID generationschemars - JSON schema generationFSL-1.1-ALv2 - See LICENSE for details.