Download codex-rs/analytics/src/thread_hint.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/analytics/src/thread_hint.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/analytics/src/thread_hint.rs
-
curl -L -o thread_hint.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/analytics/src/thread_hint.rs
1.14 kB
| //! Per-attempt thread hint status analytics without hint contents. | |
| use crate::events::CodexAppServerClientMetadata; | |
| use crate::events::CodexRuntimeMetadata; | |
| use codex_protocol::protocol::ThreadSource; | |
| use serde::Serialize; | |
| pub enum ThreadHintStatus { | |
| Succeeded, | |
| Failed, | |
| } | |
| pub struct ThreadHintStatusEvent { | |
| pub thread_id: String, | |
| pub status: ThreadHintStatus, | |
| pub occurred_at_ms: u64, | |
| } | |
| pub(crate) struct ThreadHintStatusEventRequest { | |
| pub(crate) event_type: &'static str, | |
| pub(crate) event_params: ThreadHintStatusEventParams, | |
| } | |
| pub(crate) struct ThreadHintStatusEventParams { | |
| pub(crate) thread_id: String, | |
| pub(crate) session_id: String, | |
| pub(crate) app_server_client: CodexAppServerClientMetadata, | |
| pub(crate) runtime: CodexRuntimeMetadata, | |
| pub(crate) thread_source: Option<ThreadSource>, | |
| pub(crate) subagent_source: Option<String>, | |
| pub(crate) parent_thread_id: Option<String>, | |
| pub(crate) status: ThreadHintStatus, | |
| pub(crate) occurred_at_ms: u64, | |
| } | |