INNER CODE UNIT · Rust
launch
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:263
pub async fn launch(profile: AcpAgentProfile) -> Result<Self, AcpError> {
Self::launch_with_stderr_limit(profile, DEFAULT_STDERR_LIMIT).await
}
pub async fn launch_with_stderr_limit(
profile: AcpAgentProfile,
stderr_limit: usize,
) -> Result<Self, AcpError> {
profile.validate()?;
let stderr = BoundedStderr::new(stderr_limit);
let process = ProcessTransport {
profile,
stderr: stderr.clone(),
};
launch_transport(process, stderr).await
}
pub fn info(&self) -> &AcpAgentInfo {