Skip to main content

runifold_agent/
lib.rs

1//! Structured model-tool agent runtime for Runifold.
2
3mod agent;
4mod builder;
5mod checkpoint;
6mod completion;
7mod conversation;
8mod descriptor;
9mod error;
10mod gateway;
11mod middleware;
12mod outcome;
13mod stream;
14mod structured;
15mod terminal_review;
16
17pub use agent::{Agent, AgentConfig, AgentFuture, ToolErrorPolicy};
18pub use builder::{AgentBuildError, AgentBuilder, AgentPromptError};
19pub use checkpoint::{
20    AgentCheckpoint, AgentCheckpointPhase, AgentCheckpointState, AgentRecoveryContract,
21    DurableConversationCheckpoint, ResumePolicy,
22};
23pub use completion::{
24    CompletionRequirement, TerminalRequirementFailure, TerminalRequirementFailureKind,
25};
26pub use conversation::{
27    AgentConversationError, AgentConversationOutcome, AgentSession, AgentSessionError,
28    AutomaticConversationSummary, ConversationAppend, ConversationContextPolicy,
29    ConversationCreateOutcome, ConversationId, ConversationSequence, ConversationStore,
30    ConversationStoreError, ConversationStoreErrorKind, ConversationStoreFuture,
31    ConversationSummarizer, ConversationSummarizerError, ConversationSummarizerFuture,
32    ConversationSummary, ConversationSummaryBatch, ConversationSummaryCommit,
33    ConversationSummaryPassLimit, ConversationSummaryRequest, ConversationTranscriptEntry,
34    ConversationVersion, ConversationView, ConversationWindow, DurableConversationCommit,
35    DurableConversationRequest, DurableConversationStore, InMemoryConversationStore,
36    MemoryNamespace, SemanticMemory, SemanticMemoryId, SemanticMemoryQuery,
37    SemanticMemorySearchOutcome, SemanticMemorySource, SemanticMemoryUpsert,
38    SemanticMemoryUpsertOutcome,
39};
40pub use descriptor::AgentDescriptor;
41pub use error::AgentError;
42pub use gateway::{
43    AgentGateway, AgentRegistrationError, AgentRoute, GatewayError, GatewayErrorKind,
44};
45pub use middleware::{
46    DelegationRequest, GatewayDecision, GatewayFuture, GatewayMiddleware, GatewayNext,
47    GatewayPolicy, PolicyMiddleware,
48};
49pub use outcome::{AgentOutcome, StructuredAgentOutcome};
50pub use stream::{
51    AgentEventStream, AgentStreamEvent, CallableKind, DurableConversationEventStream,
52};
53pub use structured::{StructuredAgent, StructuredAgentError};
54pub use terminal_review::{
55    CompositeTerminalReviewMode, CompositeTerminalReviewer, TerminalReviewError,
56    TerminalReviewFuture, TerminalReviewPolicy, TerminalReviewRequest, TerminalReviewVerdict,
57    TerminalReviewVerdictKind, TerminalReviewer, TerminalReviewerDescriptor, TerminalRuleReviewer,
58    TurnReviewError, TurnReviewFuture, TurnReviewPolicy, TurnReviewRequest, TurnReviewScope,
59    TurnReviewVerdict, TurnReviewer, TurnReviewerDescriptor, TurnRuleReviewer,
60};