extern crate self as ailoy;
pub mod agent;
pub mod browser;
pub mod console;
pub mod datatype;
mod macros;
pub mod message;
pub mod model;
pub mod tool;
#[doc(hidden)]
pub use indexmap as __indexmap;
#[cfg(test)]
pub(crate) async fn test_sandbox() -> virtx::Sandbox {
const IMAGE: &str = "python:3.12-slim";
static CLIENT: tokio::sync::OnceCell<virtx::Client> = tokio::sync::OnceCell::const_new();
let client = CLIENT
.get_or_init(|| async {
dotenvy::dotenv().ok();
let client = virtx::Client::spawn_virtx([] as [&str; 0])
.await
.unwrap_or_else(|e| panic!("starting the virtx server: {e}"));
client
.pull_image(IMAGE, None)
.complete(false)
.await
.unwrap_or_else(|e| panic!("pulling {IMAGE}: {e}"));
client
})
.await;
let mut args = virtx::SandboxCreateArgs::new(IMAGE);
args.memory_mib = Some(1024);
client
.create_sandbox(&args)
.await
.unwrap_or_else(|e| panic!("making a test sandbox: {e}"))
}