Download codex-rs/config/src/computer_use.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/config/src/computer_use.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/config/src/computer_use.rs
-
curl -L -o computer_use.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/config/src/computer_use.rs
1.34 kB
| use crate::AllowDenyRequirementToml; | |
| use schemars::JsonSchema; | |
| use serde::Deserialize; | |
| use serde::Serialize; | |
| use std::collections::BTreeMap; | |
| pub struct ComputerUseConfigToml { | |
| pub default_app_access: Option<AllowDenyRequirementToml>, | |
| pub macos: Option<ComputerUseMacosConfigToml>, | |
| pub windows: Option<ComputerUseWindowsConfigToml>, | |
| } | |
| pub struct ComputerUseMacosConfigToml { | |
| pub bundle_ids: Option<BTreeMap<String, AllowDenyRequirementToml>>, | |
| } | |
| pub struct ComputerUseWindowsConfigToml { | |
| pub aumids: Option<BTreeMap<String, AllowDenyRequirementToml>>, | |
| pub exes: Option<Vec<ComputerUseWindowsExeConfigToml>>, | |
| } | |
| pub struct ComputerUseWindowsExeConfigToml { | |
| pub publisher_name: String, | |
| pub product_name: String, | |
| pub binary_name: Option<String>, | |
| pub access: AllowDenyRequirementToml, | |
| } | |
| mod tests; | |