#[non_exhaustive]pub struct ResponseComputerTool {
pub environment: Option<ResponseComputerEnvironment>,
pub display_width: Option<u32>,
pub display_height: Option<u32>,
/* private fields */
}Expand description
EN: Computer tool definition for Responses API computer-use models. 中文:Responses API computer-use 模型使用的 computer 工具定义。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.environment: Option<ResponseComputerEnvironment>EN: Computer environment controlled by the tool. 中文:工具控制的计算机环境。
display_width: Option<u32>EN: Width of the virtual computer display. 中文:虚拟计算机显示器宽度。
display_height: Option<u32>EN: Height of the virtual computer display. 中文:虚拟计算机显示器高度。
Implementations§
Source§impl ResponseComputerTool
impl ResponseComputerTool
Sourcepub fn computer() -> Self
pub fn computer() -> Self
EN: Creates the basic hosted computer tool. 中文:创建基础 hosted computer 工具。
Sourcepub fn computer_use_preview(
environment: ResponseComputerEnvironment,
display_width: u32,
display_height: u32,
) -> Self
pub fn computer_use_preview( environment: ResponseComputerEnvironment, display_width: u32, display_height: u32, ) -> Self
EN: Creates a computer-use preview tool for a display environment. 中文:为指定显示环境创建 computer-use preview 工具。
Trait Implementations§
Source§impl Clone for ResponseComputerTool
impl Clone for ResponseComputerTool
Source§fn clone(&self) -> ResponseComputerTool
fn clone(&self) -> ResponseComputerTool
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 ResponseComputerTool
impl Debug for ResponseComputerTool
Source§impl From<ResponseComputerTool> for ResponseTool
impl From<ResponseComputerTool> for ResponseTool
Source§fn from(tool: ResponseComputerTool) -> Self
fn from(tool: ResponseComputerTool) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResponseComputerTool
impl PartialEq for ResponseComputerTool
Source§fn eq(&self, other: &ResponseComputerTool) -> bool
fn eq(&self, other: &ResponseComputerTool) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseComputerTool
impl Serialize for ResponseComputerTool
impl StructuralPartialEq for ResponseComputerTool
Auto Trait Implementations§
impl Freeze for ResponseComputerTool
impl RefUnwindSafe for ResponseComputerTool
impl Send for ResponseComputerTool
impl Sync for ResponseComputerTool
impl Unpin for ResponseComputerTool
impl UnsafeUnpin for ResponseComputerTool
impl UnwindSafe for ResponseComputerTool
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