Skip to main content

agent_sim/envd/
mod.rs

1pub mod error;
2pub mod lifecycle;
3pub mod server;
4pub mod spec;
5
6use crate::envd::lifecycle::socket_path;
7use crate::envd::spec::EnvSpec;
8use crate::error::AgentSimError;
9
10pub async fn run(env_spec: EnvSpec) -> Result<(), AgentSimError> {
11    let socket = socket_path(&env_spec.name);
12    server::run_listener(socket, env_spec)
13        .await
14        .map_err(AgentSimError::from)
15}