Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust
423 B
Raw Blame
//! Model-visible hook context, attributed by the executor that produced it.

use codex_protocol::models::ContentItemMetadata;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HookContext {
    pub text: String,
    pub metadata: ContentItemMetadata,
}

impl HookContext {
    pub fn harness(text: String) -> Self {
        Self {
            text,
            metadata: ContentItemMetadata::harness(),
        }
    }
}