Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

322 B
Raw Blame
// docs: test="swift"
import Cua

let guest = try await Cua.embedded().spacesd(url: "http://10.0.0.5:3211", token: "TOKEN")  // or: try await sandbox.spacesd(probeTimeoutMs: nil)
let out = try await guest.run(command: SpacesdCommand("echo", ["hello"]))
print(out.exit.success, String(decoding: out.stdout, as: UTF8.self))