use acpr::Acpr;
use sacp::ByteStreams;
use tokio_util::compat::{TokioAsyncReadCompatExt, TokioAsyncWriteCompatExt};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Demonstrating ByteStreams integration...");
let agent = Acpr::new("auggie");
println!("Created agent: {}", agent.agent_name);
let (stdin_read, _stdin_write) = tokio::io::duplex(1024);
let (_stdout_read, stdout_write) = tokio::io::duplex(1024);
let _byte_streams = ByteStreams::new(stdout_write.compat_write(), stdin_read.compat());
println!("Created ByteStreams from custom stdio");
println!("ByteStreams ready for sacp communication");
Ok(())
}