pub struct AgentRequest {
pub input: String,
pub model: String,
pub reasoning_effort: ReasoningEffort,
pub previous_thread_id: Option<String>,
pub tools: Vec<DynamicTool>,
pub ephemeral: bool,
pub timeout: Duration,
}Expand description
One standard Codex turn request.
Fields§
§input: StringExact text supplied as the user input item for this turn.
model: StringCodex model identifier.
reasoning_effort: ReasoningEffortRequested reasoning effort.
previous_thread_id: Option<String>Existing Codex thread identifier to resume.
tools: Vec<DynamicTool>Dynamic functions supplied when a fresh thread is created.
ephemeral: boolWhether a fresh thread avoids persistent Codex session storage.
timeout: DurationMaximum duration of the complete turn, including tool handling.
Implementations§
Trait Implementations§
Source§impl Clone for AgentRequest
impl Clone for AgentRequest
Source§fn clone(&self) -> AgentRequest
fn clone(&self) -> AgentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentRequest
impl Debug for AgentRequest
Source§impl PartialEq for AgentRequest
impl PartialEq for AgentRequest
impl StructuralPartialEq for AgentRequest
Auto Trait Implementations§
impl Freeze for AgentRequest
impl RefUnwindSafe for AgentRequest
impl Send for AgentRequest
impl Sync for AgentRequest
impl Unpin for AgentRequest
impl UnsafeUnpin for AgentRequest
impl UnwindSafe for AgentRequest
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