pub struct ShellTool {
pub environment: Option<ShellEnvironment>,
}Expand description
Containerized shell tool. Spec
(openai-responses-api-spec.md §tools, L463-470):
Shell { type: "shell", environment? }.
The discriminator (type: "shell") is enforced by the parent
ResponseTool enum; this struct carries only the optional environment
payload so the flatten-style wire shape survives a round-trip.
Fields§
§environment: Option<ShellEnvironment>Optional environment scope for the shell tool. When omitted, the model runs commands inside the platform-default environment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShellTool
impl<'de> Deserialize<'de> for ShellTool
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 ShellTool
impl JsonSchema for ShellTool
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 ShellTool
impl RefUnwindSafe for ShellTool
impl Send for ShellTool
impl Sync for ShellTool
impl Unpin for ShellTool
impl UnsafeUnpin for ShellTool
impl UnwindSafe for ShellTool
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