pub enum LocalShellExec {
Exec {
command: Vec<String>,
env: BTreeMap<String, String>,
timeout_ms: Option<u64>,
user: Option<String>,
working_directory: Option<String>,
},
}Expand description
action payload carried by a ResponseInputOutputItem::LocalShellCall /
ResponseOutputItem::LocalShellCall item.
Spec (openai-responses-api-spec.md §LocalShellCall L220):
{ command: array of string, env: map[string], type: "exec", timeout_ms?, user?, working_directory? }. env is always present
(an empty object is semantically distinct from omitting the field),
matching the OpenAI Python SDK (openai==2.8.1,
types/responses/response_input_item_param.py LocalShellCallAction
— non-Optional Dict[str, str]).
Variants§
Exec
type: "exec" — the only action kind defined by the spec today.
Trait Implementations§
Source§impl Clone for LocalShellExec
impl Clone for LocalShellExec
Source§fn clone(&self) -> LocalShellExec
fn clone(&self) -> LocalShellExec
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 LocalShellExec
impl Debug for LocalShellExec
Source§impl<'de> Deserialize<'de> for LocalShellExec
impl<'de> Deserialize<'de> for LocalShellExec
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 LocalShellExec
impl JsonSchema for LocalShellExec
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 moreSource§impl PartialEq for LocalShellExec
impl PartialEq for LocalShellExec
Source§impl Serialize for LocalShellExec
impl Serialize for LocalShellExec
impl StructuralPartialEq for LocalShellExec
Auto Trait Implementations§
impl Freeze for LocalShellExec
impl RefUnwindSafe for LocalShellExec
impl Send for LocalShellExec
impl Sync for LocalShellExec
impl Unpin for LocalShellExec
impl UnsafeUnpin for LocalShellExec
impl UnwindSafe for LocalShellExec
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