pub enum Item {
AgentMessage {
id: Option<String>,
text: Option<String>,
},
Reasoning {
id: Option<String>,
text: Option<String>,
},
CommandExecution {
id: Option<String>,
command: Option<String>,
aggregated_output: Option<String>,
exit_code: Option<i32>,
status: Option<String>,
},
FileChange {
id: Option<String>,
changes: Vec<FileUpdateChange>,
status: Option<String>,
},
McpToolCall {
id: Option<String>,
server: Option<String>,
tool: Option<String>,
status: Option<String>,
},
WebSearch {
id: Option<String>,
query: Option<String>,
},
TodoList {
id: Option<String>,
items: Vec<TodoItem>,
},
Error {
id: Option<String>,
message: Option<String>,
},
Unknown,
}Expand description
An item within a codex execution turn.
Items represent the model’s actions: generating text, executing commands, modifying files, etc. Each item goes through started -> updated* -> completed.
Variants§
AgentMessage
A text message from the agent.
Reasoning
Reasoning / chain-of-thought text.
CommandExecution
A shell command execution.
Fields
FileChange
A file modification.
Fields
§
changes: Vec<FileUpdateChange>The individual file changes.
McpToolCall
An MCP tool invocation.
Fields
WebSearch
A web search query.
TodoList
A todo/task list.
Error
An item-level error.
Unknown
Forward-compatibility: any unrecognized item type.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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