Expand description
Core types, traits, and errors for the Haima agentic finance engine.
Haima (αἷμα, Greek for “blood”) is the circulatory system of the Agent OS — distributing economic resources (payments, revenue, credits) throughout the organism. It implements the x402 protocol for machine-to-machine payments at the HTTP layer, enabling agents to pay for resources and charge for services without human intervention.
Re-exports§
pub use bureau::AgentCreditReport;pub use bureau::CreditLineSummary;pub use bureau::PaymentHistory;pub use bureau::PaymentSummary;pub use bureau::RiskFlag;pub use bureau::RiskFlagType;pub use bureau::RiskRating;pub use bureau::TrustContext;pub use bureau::TrustTrajectory;pub use bureau::assess_risk_rating;pub use bureau::detect_risk_flags;pub use bureau::generate_credit_report;pub use credit::CreditCheckResult;pub use credit::CreditFactors;pub use credit::CreditScore;pub use credit::CreditTier;pub use credit::check_credit;pub use credit::compute_credit_score;pub use error::HaimaError;pub use error::HaimaResult;pub use event::FinanceEventKind;pub use lending::CreditLine;pub use lending::CreditLineStatus;pub use lending::DrawRequest;pub use lending::DrawResult;pub use lending::RepaymentRecord;pub use lending::accrue_interest;pub use lending::close_credit_line;pub use lending::default_credit_line;pub use lending::draw;pub use lending::freeze_credit_line;pub use lending::open_credit_line;pub use lending::repay;pub use lending::unfreeze_credit_line;pub use payment::PaymentDecision;pub use payment::PaymentRequest;pub use policy::PaymentPolicy;pub use receipt::PaymentReceipt;pub use scheme::PaymentScheme;pub use wallet::ChainId;pub use wallet::OnChainBalance;pub use wallet::WalletAddress;
Modules§
- bureau
- Agent Credit Bureau — behavioral risk registry for the Agent OS.
- credit
- Agent behavioral credit scoring model.
- error
- Error types for Haima.
- event
- Finance event kinds for the Lago event journal.
- lending
- Agent micro-credit and lending service.
- payment
- Payment request and decision types.
- policy
- Payment policy — rules governing when payments are auto-approved, require human approval, or are denied outright.
- receipt
- Payment receipt types — settlement confirmation from on-chain transactions.
- scheme
- Payment schemes supported by the x402 protocol.
- wallet
- Wallet address and on-chain balance types.