Expand description
Lybic SDK for Rust
Developing, testing, and deploying GUI-based AI agents is complex. Developers waste precious time wrestling with cloud instances, VNC servers, and environment configurations instead of focusing on what matters: building intelligent agents.
Lybic is the infrastructure layer for your GUI agents.
Lybic (/ˈlaɪbɪk/) provides a robust, on-demand infrastructure platform designed specifically for the AI agent development lifecycle. This SDK for Go is your command center for programmatically controlling the entire Lybic ecosystem, empowering you to build, test, and scale your agents with unprecedented speed and simplicity.
§Usage
[dependencies]
lybic-sdk-rs = "0.1.0"example:
use lybic_sdk_rs::{Client, types::CreateSandboxDto};
const ORG_ID: &str = "lybic-sdk-rust-example";
#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
// Create a client
let client = Client::new("https://api.lybic.cn");
// Create a sandbox
let sandbox = client
.create_sandbox(
ORG_ID,
&CreateSandboxDto {
max_life_seconds: Some(3600.0),
name: ORG_ID.to_string(),
project_id: None,
shape: "<your-sandbox-shape>".to_string(),
},
)
.await?;
println!("Sandbox created: {:?}", sandbox);
// Delete the sandbox
client.delete_sandbox(ORG_ID, &sandbox.id).await?;
println!("Sandbox deleted");
Ok(())
}Modules§
- prelude
- Items consumers will typically use such as the Client.
- types
- Types used as operation parameters and responses.
Structs§
- Byte
Stream - Untyped byte stream used for both success and error responses.
- Client
- Client for Lybic core API
- Response
Value - Typed value returned by generated client methods.
Enums§
- Error
- Error produced by generated client methods.
Traits§
- Client
Info - Interface for which an implementation is generated for all clients.