pub enum ShellCallEnvironment {
Local(LocalShellEnvironment),
ContainerReference(ContainerReferenceEnvironment),
}Expand description
Input-side environment union carried on
ResponseInputOutputItem::ShellCall.
Spec (openai-responses-api-spec.md §ShellCall, L228-230): the input-side
call form carries environment: optional LocalEnvironment { type: "local" } | ContainerReference { container_id, type: "container_reference" }. container_auto is rejected here — it is a request-side tool
hint (§tools L465) that the platform resolves into local /
container_reference before a call is surfaced, not a call-form value.
The tool-side LocalShellEnvironment is intentionally reused so
spec-compliant replay flows that echo back input call items round-trip
losslessly. Response-side emissions use the narrower
ResponseShellCallEnvironment instead.
Variants§
Local(LocalShellEnvironment)
type: "local" — input-side local environment. Reuses the tool-form
LocalShellEnvironment verbatim.
ContainerReference(ContainerReferenceEnvironment)
type: "container_reference" — resolved container binding.
Trait Implementations§
Source§impl Clone for ShellCallEnvironment
impl Clone for ShellCallEnvironment
Source§fn clone(&self) -> ShellCallEnvironment
fn clone(&self) -> ShellCallEnvironment
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 ShellCallEnvironment
impl Debug for ShellCallEnvironment
Source§impl<'de> Deserialize<'de> for ShellCallEnvironment
impl<'de> Deserialize<'de> for ShellCallEnvironment
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 ShellCallEnvironment
impl JsonSchema for ShellCallEnvironment
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