Skip to main content

systemprompt_identifiers/
headers.rs

1//! Canonical HTTP header name constants used throughout the platform for
2//! propagating trace, session, and authorization context across services.
3//!
4//! Copyright (c) systemprompt.io — Business Source License 1.1.
5//! See <https://systemprompt.io> for licensing details.
6
7pub const TRACE_ID: &str = "x-trace-id";
8pub const CONTEXT_ID: &str = "x-context-id";
9pub const GATEWAY_CONVERSATION_ID: &str = "x-gateway-conversation-id";
10pub const PROVIDER_REQUEST_ID: &str = "x-provider-request-id";
11pub const SESSION_ID: &str = "x-session-id";
12pub const USER_ID: &str = "x-user-id";
13pub const USER_TYPE: &str = "x-user-type";
14pub const TASK_ID: &str = "x-task-id";
15pub const AGENT_NAME: &str = "x-agent-name";
16pub const AI_TOOL_CALL_ID: &str = "x-ai-tool-call-id";
17pub const CALL_SOURCE: &str = "x-call-source";
18pub const CLIENT_ID: &str = "x-client-id";
19pub const POLICY_VERSION: &str = "x-policy-version";
20pub const INFERENCE_PROTOCOL: &str = "x-inference-protocol";
21pub const AUTHORIZATION: &str = "authorization";
22pub const PROXY_VERIFIED: &str = "x-proxy-verified";
23pub const USER_PERMISSIONS: &str = "x-user-permissions";