use mixtape_core::{Agent, ClaudeHaiku4_5};
use mixtape_server::MixtapeRouter;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let agent = Agent::builder()
.bedrock(ClaudeHaiku4_5)
.with_system_prompt("You are a helpful assistant.")
.interactive() .build()
.await?;
let app = MixtapeRouter::new(agent)
.with_agui("/api/copilotkit") .build()?;
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await?;
println!("Server running at http://localhost:3000");
println!("AG-UI endpoint: POST http://localhost:3000/api/copilotkit");
println!("Interrupt endpoint: POST http://localhost:3000/api/copilotkit/interrupt");
axum::serve(listener, app).await?;
Ok(())
}