1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Kranth — stress-test ideas with hundreds of AI personas.
//!
//! ```no_run
//! # use kranth::{Kranth, CreateSimRequest};
//! # use futures::StreamExt;
//! # #[tokio::main]
//! # async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Kranth::new("kr_live_…");
//!
//! let sim = client.sims().create(&CreateSimRequest {
//! idea_text: "Launch a paid Rust devtool. $29/mo.".into(),
//! persona_count: 50,
//! model_id: "claude-sonnet-4-6".into(),
//! training_opt_in: None,
//! }).await?;
//!
//! let mut stream = client.sims().stream(&sim.sim_id);
//! while let Some(ev) = stream.next().await {
//! let ev = ev?;
//! if ev.kind == "sim.complete" {
//! break;
//! }
//! }
//! # Ok(())
//! # }
//! ```
pub use CheckoutParams;
pub use Kranth;
pub use ;
pub use *;