pub enum ShellEnvironment {
ContainerAuto(ContainerAutoEnvironment),
Local(LocalShellEnvironment),
ContainerReference(ContainerReferenceEnvironment),
}Expand description
Tool-side environment union carried on ShellTool::environment.
Spec (openai-responses-api-spec.md §tools, L464-470):
environment: ContainerAuto | LocalEnvironment | ContainerReference.
Distinct from the call-side environment unions
ShellCallEnvironment (input-side call form, reuses
LocalShellEnvironment) and
ResponseShellCallEnvironment (response-side call form, carries the
narrower ResponseLocalShellEnvironment): the tool
form permits the container_auto variant, which asks the platform to
provision a new container; both call forms only carry the resolved
local / container_reference shape that the model echoes back.
Variants§
ContainerAuto(ContainerAutoEnvironment)
type: "container_auto" — spec L465-468. Requests a
platform-provisioned container with optional file_ids,
memory_limit, and network_policy.
Local(LocalShellEnvironment)
type: "local" — spec L469. Runs in the caller-owned environment.
ContainerReference(ContainerReferenceEnvironment)
type: "container_reference" — spec L470. Pins execution to an
existing container by id.
Trait Implementations§
Source§impl Clone for ShellEnvironment
impl Clone for ShellEnvironment
Source§fn clone(&self) -> ShellEnvironment
fn clone(&self) -> ShellEnvironment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShellEnvironment
impl Debug for ShellEnvironment
Source§impl<'de> Deserialize<'de> for ShellEnvironment
impl<'de> Deserialize<'de> for ShellEnvironment
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>,
Source§impl JsonSchema for ShellEnvironment
impl JsonSchema for ShellEnvironment
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more