Struct ComputerCallOutputItemParam

Source
pub struct ComputerCallOutputItemParam {
    pub acknowledged_safety_checks: Option<Vec<ComputerCallSafetyCheckParam>>,
    pub call_id: String,
    pub id: Option<String>,
    pub output: ComputerScreenshotImage,
    pub status: Option<String>,
    pub _type: String,
}
Expand description

§on openapi.yaml

ComputerCallOutputItemParam:
  properties:
    id:
      anyOf:
        - type: string
          description: The ID of the computer tool call output.
        - type: "null"
    call_id:
      type: string
      maxLength: 64
      minLength: 1
      description: The ID of the computer tool call that produced the output.
    type:
      type: string
      enum:
        - computer_call_output
      description: The type of the computer tool call output. Always
        `computer_call_output`.
      default: computer_call_output
      x-stainless-const: true
    output:
      $ref: "#/components/schemas/ComputerScreenshotImage"
    acknowledged_safety_checks:
      anyOf:
        - items:
            $ref: "#/components/schemas/ComputerCallSafetyCheckParam"
          type: array
          description:
            The safety checks reported by the API that have been acknowledged
            by the developer.
        - type: "null"
    status:
      anyOf:
        - type: string
          enum:
            - in_progress
            - completed
            - incomplete
          description:
            The status of the message input. One of `in_progress`, `completed`,
            or `incomplete`. Populated when input items are returned via
            API.
        - type: "null"
  type: object
  required:
    - call_id
    - type
    - output
  title: Computer tool call output
  description: The output of a computer tool call.

Fields§

§acknowledged_safety_checks: Option<Vec<ComputerCallSafetyCheckParam>>§call_id: String

The ID of the computer tool call that produced the output.

§id: Option<String>

type: “null” or type: string of The ID of the computer tool call output.

§output: ComputerScreenshotImage§status: Option<String>

anyOf: stringin_progress、stringcompleted、stringincomplete or Optionnull

§_type: String

The type of the computer tool call output. Always computer_call_output.

Trait Implementations§

Source§

impl Debug for ComputerCallOutputItemParam

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ComputerCallOutputItemParam

Source§

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 Serialize for ComputerCallOutputItemParam

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,