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;
15
16pub use agent::{Agent, AgentConfig, AgentFuture, ToolErrorPolicy};
17pub use builder::{AgentBuildError, AgentBuilder, AgentPromptError};
18pub use checkpoint::{
19    AgentCheckpoint, AgentCheckpointPhase, AgentCheckpointState, DurableConversationCheckpoint,
20    ResumePolicy,
21};
22pub use completion::{
23    CompletionRequirement, TerminalRequirementFailure, TerminalRequirementFailureKind,
24};
25pub use conversation::{
26    AgentConversationError, AgentConversationOutcome, AutomaticConversationSummary,
27    ConversationAppend, ConversationContextPolicy, ConversationCreateOutcome, ConversationId,
28    ConversationSequence, ConversationStore, ConversationStoreError, ConversationStoreErrorKind,
29    ConversationStoreFuture, ConversationSummarizer, ConversationSummarizerError,
30    ConversationSummarizerFuture, ConversationSummary, ConversationSummaryBatch,
31    ConversationSummaryCommit, ConversationSummaryPassLimit, ConversationSummaryRequest,
32    ConversationTranscriptEntry, ConversationVersion, ConversationView, ConversationWindow,
33    DurableConversationCommit, DurableConversationRequest, DurableConversationStore,
34    InMemoryConversationStore, MemoryNamespace, SemanticMemory, SemanticMemoryId,
35    SemanticMemoryQuery, SemanticMemorySearchOutcome, SemanticMemorySource, SemanticMemoryUpsert,
36    SemanticMemoryUpsertOutcome,
37};
38pub use descriptor::AgentDescriptor;
39pub use error::AgentError;
40pub use gateway::{
41    AgentGateway, AgentRegistrationError, AgentRoute, GatewayError, GatewayErrorKind,
42};
43pub use middleware::{
44    DelegationRequest, GatewayDecision, GatewayFuture, GatewayMiddleware, GatewayNext,
45    GatewayPolicy, PolicyMiddleware,
46};
47pub use outcome::{AgentOutcome, StructuredAgentOutcome};
48pub use stream::{AgentEventStream, AgentStreamEvent, CallableKind};
49pub use structured::{StructuredAgent, StructuredAgentError};