Skip to main content

Crate agentmesh

Crate agentmesh 

Source
Expand description

§AgentMesh Rust SDK

Rust SDK for the Agent Governance Toolkit — policy evaluation, trust scoring, hash-chain audit logging, and Ed25519 agent identity.

§Quick Start

use agentmesh::AgentMeshClient;

let client = AgentMeshClient::new("my-agent")
    .expect("failed to create client");

let result = client.execute_with_governance("data.read", None);
assert!(result.allowed);

Re-exports§

pub use audit::AuditLogger;
pub use identity::AgentIdentity;
pub use identity::PublicIdentity;
pub use policy::PolicyEngine;
pub use policy::PolicyError;
pub use trust::TrustConfig;
pub use trust::TrustManager;
pub use types::AuditEntry;
pub use types::AuditFilter;
pub use types::CandidateDecision;
pub use types::ConflictResolutionStrategy;
pub use types::GovernanceResult;
pub use types::PolicyDecision;
pub use types::PolicyScope;
pub use types::ResolutionResult;
pub use types::TrustScore;
pub use types::TrustTier;

Modules§

audit
Append-only hash-chain audit log with SHA-256 integrity verification.
identity
Ed25519-based agent identity with DID support.
policy
YAML-based policy evaluation engine with four-way decisions: allow, deny, requires-approval, and rate-limit.
trust
Trust scoring engine — tracks per-agent trust scores on a 0–1000 scale across five tiers, with optional JSON persistence.
types
Shared types for the AgentMesh governance framework.

Structs§

AgentMeshClient
Unified governance client combining identity, policy, trust, and audit.
ClientOptions
Builder options for AgentMeshClient.

Enums§

ClientError
Errors returned by AgentMeshClient construction.