pub struct CodeInterpreterConfig {
pub container_mode: Option<ContainerMode>,
pub container_id: Option<String>,
pub container_config: Option<ContainerConfig>,
pub language: Option<String>,
pub max_execution_time_ms: Option<u32>,
pub libraries: Option<Vec<String>>,
pub file_ids: Option<Vec<String>>,
pub persist_container: Option<bool>,
pub include_citations: Option<bool>,
}Expand description
Code interpreter configuration
Fields§
§container_mode: Option<ContainerMode>Container mode: “auto” or “explicit”
container_id: Option<String>Container ID for explicit mode
container_config: Option<ContainerConfig>Container configuration for auto mode
language: Option<String>Programming language to use
max_execution_time_ms: Option<u32>Maximum execution time in milliseconds
libraries: Option<Vec<String>>Available libraries/packages
file_ids: Option<Vec<String>>File IDs accessible to the interpreter
persist_container: Option<bool>Whether to persist container after execution
include_citations: Option<bool>Whether to include file citations in responses
Trait Implementations§
Source§impl Clone for CodeInterpreterConfig
impl Clone for CodeInterpreterConfig
Source§fn clone(&self) -> CodeInterpreterConfig
fn clone(&self) -> CodeInterpreterConfig
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 CodeInterpreterConfig
impl Debug for CodeInterpreterConfig
Source§impl<'de> Deserialize<'de> for CodeInterpreterConfig
impl<'de> Deserialize<'de> for CodeInterpreterConfig
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 CodeInterpreterConfig
impl RefUnwindSafe for CodeInterpreterConfig
impl Send for CodeInterpreterConfig
impl Sync for CodeInterpreterConfig
impl Unpin for CodeInterpreterConfig
impl UnwindSafe for CodeInterpreterConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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