Codex Handbook
core/src/context/realtime_start_instructions.rs 28 lines
use super::ContextualUserFragment;use codex_prompts::START_INSTRUCTIONS;use codex_protocol::protocol::REALTIME_CONVERSATION_CLOSE_TAG;use codex_protocol::protocol::REALTIME_CONVERSATION_OPEN_TAG;#[derive(Debug, Clone, Copy, PartialEq, Eq)]pub(crate) struct RealtimeStartInstructions;impl ContextualUserFragment for RealtimeStartInstructions {    fn role(&self) -> &'static str {        "developer"    }    fn markers(&self) -> (&'static str, &'static str) {        Self::type_markers()    }    fn type_markers() -> (&'static str, &'static str) {        (            REALTIME_CONVERSATION_OPEN_TAG,            REALTIME_CONVERSATION_CLOSE_TAG,        )    }    fn body(&self) -> String {        format!("\n{}\n", START_INSTRUCTIONS.trim())    }}