pub struct CodexSessionEntry {
pub timestamp: String,
pub entry_type: String,
pub payload: Value,
}Expand description
A single entry in a Codex session JSONL file.
Codex uses a unified entry format with type discriminator.
Fields§
§timestamp: StringEntry timestamp (ISO 8601)
entry_type: StringEntry type: “session_meta”, “response_item”, “event_msg”, “turn_context”
payload: ValueType-specific payload
Implementations§
Source§impl CodexSessionEntry
impl CodexSessionEntry
Sourcepub fn into_events(
self,
machine_id: &str,
session_id: &str,
function_call_map: &mut FunctionCallMap,
session_meta: &Option<SessionMeta>,
turn_model: &mut Option<String>,
) -> Vec<Event>
pub fn into_events( self, machine_id: &str, session_id: &str, function_call_map: &mut FunctionCallMap, session_meta: &Option<SessionMeta>, turn_model: &mut Option<String>, ) -> Vec<Event>
Convert this entry to Event(s).
A single entry may produce multiple events depending on type.
The function_call_map tracks call_id -> function info for enriching outputs.
The session_meta provides session-level context like cwd, git branch.
The turn_model tracks the model from the most recent turn_context.
Trait Implementations§
Source§impl Clone for CodexSessionEntry
impl Clone for CodexSessionEntry
Source§fn clone(&self) -> CodexSessionEntry
fn clone(&self) -> CodexSessionEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodexSessionEntry
impl Debug for CodexSessionEntry
Source§impl<'de> Deserialize<'de> for CodexSessionEntry
impl<'de> Deserialize<'de> for CodexSessionEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CodexSessionEntry
impl RefUnwindSafe for CodexSessionEntry
impl Send for CodexSessionEntry
impl Sync for CodexSessionEntry
impl Unpin for CodexSessionEntry
impl UnwindSafe for CodexSessionEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more