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
40
41
42
43
44
45
46
47
48
49
50
51
//! # Axoniac
//!
//! Rust client for the [Axoniac](https://axoniac.com) API — agent pack
//! provisioning, tenant management, and memory access.
//!
//! ## Quick Start
//!
//! ```no_run
//! use axoniac::{Axoniac, ProvisionPackRequest, SoulInput, PackInput};
//!
//! # async fn example() -> Result<(), axoniac::Error> {
//! let client = Axoniac::new("ax_your_api_key", None)?;
//!
//! // Provision an agent pack into Axoniac
//! let result = client.provision_pack(ProvisionPackRequest {
//! soul: SoulInput {
//! name: "my_agent".into(),
//! description: "A helpful agent".into(),
//! content: "You are a helpful assistant.".into(),
//! tags: Some(vec!["general".into()]),
//! },
//! personas: vec![],
//! pack: PackInput {
//! name: "My Agent Pack".into(),
//! description: "A general-purpose agent pack".into(),
//! definition: serde_json::json!({
//! "role": "assistant",
//! "soul": { "name": "my_agent", "hash": "" },
//! "hooks": [],
//! "skills": [],
//! }),
//! ..Default::default()
//! },
//! }).await?;
//!
//! println!("Content hash: {}", result.content_hash);
//!
//! // Install the pack on a tenant by hash
//! // let tenant_id = uuid::Uuid::new_v4();
//! // client.install_agent_pack(&tenant_id, &result.content_hash).await?;
//! # Ok(())
//! # }
//! ```
pub use Axoniac;
pub use Error;
pub use *;