Download codex-rs/app-server-protocol/src/protocol/v2/notification.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/notification.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/app-server-protocol/src/protocol/v2/notification.rs
-
curl -L -o notification.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/app-server-protocol/src/protocol/v2/notification.rs
2.47 kB
| use super::TurnError; | |
| use crate::JsonSchema; | |
| use crate::RequestId; | |
| use crate::TS; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| pub struct AuthRecoveryNotification { | |
| pub thread_id: String, | |
| pub turn_id: String, | |
| pub provider: String, | |
| pub message: String, | |
| } | |
| pub struct DeprecationNoticeNotification { | |
| /// Concise summary of what is deprecated. | |
| pub summary: String, | |
| /// Optional extra guidance, such as migration steps or rationale. | |
| pub details: Option<String>, | |
| } | |
| pub struct WarningNotification { | |
| /// Optional thread target when the warning applies to a specific thread. | |
| pub thread_id: Option<String>, | |
| /// Concise warning message for the user. | |
| pub message: String, | |
| } | |
| pub struct GuardianWarningNotification { | |
| /// Thread target for the guardian warning. | |
| pub thread_id: String, | |
| /// Concise guardian warning message for the user. | |
| pub message: String, | |
| } | |
| pub struct StrictReviewRequiredNotification { | |
| pub thread_id: String, | |
| pub turn_id: String, | |
| /// Unix timestamp (in milliseconds) when this review started. | |
| pub started_at_ms: i64, | |
| } | |
| pub struct ErrorNotification { | |
| pub error: TurnError, | |
| // Set to true if the error is transient and the app-server process will automatically retry. | |
| // If true, this will not interrupt a turn. | |
| pub will_retry: bool, | |
| pub thread_id: String, | |
| pub turn_id: String, | |
| } | |
| pub struct ServerRequestResolvedNotification { | |
| pub thread_id: String, | |
| pub request_id: RequestId, | |
| } | |