axoniac 0.1.1

Rust client for the Axoniac API — agent packs, tenants, memories
Documentation
//! # 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(())
//! # }
//! ```

mod client;
mod error;
mod models;

pub use client::Axoniac;
pub use error::Error;
pub use models::*;