pub struct CodexToolCallParam {
pub prompt: String,
pub model: Option<String>,
pub profile: Option<String>,
pub cwd: Option<String>,
pub approval_policy: Option<CodexToolCallApprovalPolicy>,
pub sandbox: Option<CodexToolCallSandboxMode>,
pub config: Option<HashMap<String, Value>>,
pub base_instructions: Option<String>,
pub include_plan_tool: Option<bool>,
}
Expand description
Client-supplied configuration for a codex
tool-call.
Fields§
§prompt: String
The initial user prompt to start the Codex conversation.
model: Option<String>
Optional override for the model name (e.g. “o3”, “o4-mini”).
profile: Option<String>
Configuration profile from config.toml to specify default options.
cwd: Option<String>
Working directory for the session. If relative, it is resolved against the server process’s current working directory.
approval_policy: Option<CodexToolCallApprovalPolicy>
Approval policy for shell commands generated by the model:
untrusted
, on-failure
, on-request
, never
.
sandbox: Option<CodexToolCallSandboxMode>
Sandbox mode: read-only
, workspace-write
, or danger-full-access
.
config: Option<HashMap<String, Value>>
Individual config settings that will override what is in CODEX_HOME/config.toml.
base_instructions: Option<String>
The set of instructions to use instead of the default ones.
include_plan_tool: Option<bool>
Whether to include the plan tool in the conversation.
Implementations§
Trait Implementations§
Source§impl Clone for CodexToolCallParam
impl Clone for CodexToolCallParam
Source§fn clone(&self) -> CodexToolCallParam
fn clone(&self) -> CodexToolCallParam
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 CodexToolCallParam
impl Debug for CodexToolCallParam
Source§impl Default for CodexToolCallParam
impl Default for CodexToolCallParam
Source§fn default() -> CodexToolCallParam
fn default() -> CodexToolCallParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodexToolCallParam
impl<'de> Deserialize<'de> for CodexToolCallParam
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
Source§impl JsonSchema for CodexToolCallParam
impl JsonSchema for CodexToolCallParam
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for CodexToolCallParam
impl RefUnwindSafe for CodexToolCallParam
impl Send for CodexToolCallParam
impl Sync for CodexToolCallParam
impl Unpin for CodexToolCallParam
impl UnwindSafe for CodexToolCallParam
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more