aegis-runtime-mv
Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.
Brought by drakestapleton
aegis-runtime-mv / src / lib.rs
| 1 | pub mod agent; |
| 2 | pub mod auth; |
| 3 | pub mod defense; |
| 4 | pub mod events; |
| 5 | pub mod execution; |
| 6 | pub mod failure; |
| 7 | pub mod gateway; |
| 8 | pub mod heartbeat; |
| 9 | pub mod inference; |
| 10 | pub mod orchestration; |
| 11 | pub mod persistence; |
| 12 | pub mod security; |
| 13 | pub mod sessions; |
| 14 | pub mod skills; |
| 15 | pub mod vault; |
| 16 | pub mod vector_math; |
| 17 | |
| 18 | pub use agent::{AgentEngine, AgentExecutionResult, AgentStep, FailurePolicy, ToolExecutionRecord}; |
| 19 | pub use auth::{resolve_bind_addr, OperatorAuth}; |
| 20 | pub use defense::{Approval, ApprovalStatus, ContainmentLevel, DefenseReceipt, DoctrineDecision}; |
| 21 | pub use events::{AegisEvent, EventBus, EventEnvelope, EventId, EventSubscriber}; |
| 22 | pub use execution::{Action, ActionReceipt, ActionRequest, ActionStatus, ExecutionAuthority}; |
| 23 | pub use failure::{ |
| 24 | retry_eligibility, root_cause, skill_effect_profile, AttemptFailure, CancelToken, CauseEntry, |
| 25 | EffectCertainty, FailureClass, FailureRecord, RetryEligibility, RetryPolicy, ToolDispatcher, |
| 26 | ToolFault, |
| 27 | }; |
| 28 | pub use gateway::{create_router, start_gateway, GatewayState, HealthResponse}; |
| 29 | pub use heartbeat::{HeartbeatEngine, PulseReceipt}; |
| 30 | pub use inference::{ |
| 31 | ChatStream, ChatTurnResponse, EmbeddedInferenceBackend, HttpInferenceBackend, InferenceEngine, |
| 32 | ProtocolInferenceBackend, ToolCallFunction, ToolCallItem, |
| 33 | }; |
| 34 | pub use orchestration::workflow::{ |
| 35 | TaskId, TaskOutcome, TaskRunner, TaskState, WorkflowConfig, WorkflowError, WorkflowExecutor, |
| 36 | WorkflowReport, WorkflowSpec, WorkflowStatus, |
| 37 | }; |
| 38 | pub use orchestration::{Run, RunBudget, RunState, TerminationReason, Trigger}; |
| 39 | pub use persistence::{ |
| 40 | AsyncDatabase, CrumbRecord, Database, PersistenceError, SqliteActionStore, SqliteApprovalStore, |
| 41 | SqliteMessageStore, SqliteRunStore, SqliteSessionStore, TaskRecord, TurnRecord, |
| 42 | }; |
| 43 | pub use security::{SecurityError, WorkspaceCapability}; |
| 44 | pub use sessions::{ |
| 45 | ActionId, ActionStore, ApprovalId, ApprovalStore, AssistantMessage, Message, MessageId, |
| 46 | MessageStore, Role, RunId, RunStore, Session, SessionBudget, SessionId, SessionStatus, |
| 47 | SessionStore, SystemMessage, ToolResultMessage, UserMessage, |
| 48 | }; |
| 49 | pub use skills::{SkillDefinition, SkillExecutionRequest, SkillExecutionResponse, SkillRegistry}; |
| 50 | pub use vault::{VaultResolver, REDACTED_MARKER}; |
| 51 | pub use vector_math::VectorMath; |
| 52 | |
| 53 | // Re-export Canonical AIEN Agent State ABI and Protocol Types |
| 54 | pub use aien_agent_state_abi::{ |
| 55 | AgentEvent, AgentIdentity, AgentState, AgentStateEvent, ContextState, ExecutionState, |
| 56 | Objective, ResourceBudget, SessionState, StateRef, |
| 57 | }; |
| 58 | pub use aien_protocol_types::{AgentId, Digest32, ProtocolVersion, SequenceNumber, Timestamp}; |
| 59 | |
| 60 | pub mod enforcement; |
| 61 | pub mod policy_guard; |
| 62 | pub use enforcement::{pre_dispatch_check, probe_threshold_from_env}; |
| 63 | pub use policy_guard::ProbePolicyGuard; |