pub struct CodexAgentRuntime { /* private fields */ }Implementations§
Source§impl CodexAgentRuntime
impl CodexAgentRuntime
pub fn new() -> Self
pub fn with_tool_policy(tool_policy: CodexToolPolicy) -> Self
Sourcepub fn initialized_server_version(&self) -> Option<&str>
pub fn initialized_server_version(&self) -> Option<&str>
Version attested by the exact app-server child that answered initialize.
pub fn initialize_request(&mut self) -> Result<String, RuntimeError>
pub fn initialized_notification(&mut self) -> Result<String, RuntimeError>
pub fn account_read_request(&mut self) -> Result<String, RuntimeError>
pub fn model_list_request( &mut self, cursor: Option<&str>, ) -> Result<String, RuntimeError>
pub fn rate_limits_read_request(&mut self) -> Result<String, RuntimeError>
pub fn thread_start_request( &mut self, model: &str, effort: ReasoningEffort, ) -> Result<String, RuntimeError>
pub fn thread_start_request_with_instructions( &mut self, model: &str, effort: ReasoningEffort, base_instructions: Option<&str>, developer_instructions: Option<&str>, ) -> Result<String, RuntimeError>
pub fn turn_start_request( &mut self, thread_id: &str, client_message_id: &str, text: &str, model: &str, effort: ReasoningEffort, ) -> Result<String, RuntimeError>
pub fn turn_interrupt_request( &mut self, thread_id: &str, turn_id: &str, ) -> Result<String, RuntimeError>
pub fn ingest_line(&mut self, line: &[u8]) -> Result<RuntimeEvent, RuntimeError>
Trait Implementations§
Source§impl Debug for CodexAgentRuntime
impl Debug for CodexAgentRuntime
Auto Trait Implementations§
impl Freeze for CodexAgentRuntime
impl RefUnwindSafe for CodexAgentRuntime
impl Send for CodexAgentRuntime
impl Sync for CodexAgentRuntime
impl Unpin for CodexAgentRuntime
impl UnsafeUnpin for CodexAgentRuntime
impl UnwindSafe for CodexAgentRuntime
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