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.

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

let sb = try await Cua.embedded().sandboxes().connectUrl(url: "http://10.0.0.5:3211", token: "wrong-token", name: nil)
do {
    _ = try await sb.spacesd(probeTimeoutMs: 5000)
} catch CuaError.Unauthenticated(let message) {  // one case; any other CuaError propagates
    print("rejected:", message)
}