Embedding
Embed agents in your applications
Embed agents directly into your applications.
Quick Start
- Embed in Application
rust use praisonai::Agent; // Create agent as part of your application let agent = Agent::new() .name("Assistant") .build()?; // Use in your app logic async fn handle_user_query(query: &str) -> String { agent.chat(query).await.unwrap() }
Embedding Options
| Platform | Method |
|---|---|
| Rust apps | Direct library |
| Web apps | WebAssembly |
| CLI tools | Binary inclusion |