pub struct ComputerUseInput {
pub action: String,
pub coordinate: Option<Vec<i32>>,
pub text: Option<String>,
pub keys: Option<Vec<String>>,
pub direction: Option<String>,
pub amount: Option<i32>,
pub duration_ms: Option<u64>,
}Expand description
Typed input for the computer-use tool (used for schema generation).
Fields§
§action: StringAction to perform.
coordinate: Option<Vec<i32>>Coordinate as [x, y] for actions that need a position.
text: Option<String>Text to type (for type action).
keys: Option<Vec<String>>Key names to press simultaneously (for key_press action).
direction: Option<String>Scroll direction: up or down (for scroll action).
amount: Option<i32>Scroll amount in clicks (for scroll action).
duration_ms: Option<u64>Wait duration in milliseconds (for wait action).
Trait Implementations§
Source§impl Debug for ComputerUseInput
impl Debug for ComputerUseInput
Source§impl<'de> Deserialize<'de> for ComputerUseInput
impl<'de> Deserialize<'de> for ComputerUseInput
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 ComputerUseInput
impl JsonSchema for ComputerUseInput
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 ComputerUseInput
impl RefUnwindSafe for ComputerUseInput
impl Send for ComputerUseInput
impl Sync for ComputerUseInput
impl Unpin for ComputerUseInput
impl UnsafeUnpin for ComputerUseInput
impl UnwindSafe for ComputerUseInput
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