Skip to main content

runifold_agent/
lib.rs

1//! Structured model-tool agent runtime for Runifold.
2
3mod agent;
4mod builder;
5mod checkpoint;
6mod conversation;
7mod descriptor;
8mod error;
9mod gateway;
10mod middleware;
11mod outcome;
12mod stream;
13mod structured;
14
15pub use agent::{Agent, AgentConfig, AgentFuture, ToolErrorPolicy};
16pub use builder::{AgentBuildError, AgentBuilder, AgentPromptError};
17pub use checkpoint::{
18    AgentCheckpoint, AgentCheckpointPhase, AgentCheckpointState, DurableConversationCheckpoint,
19    ResumePolicy,
20};
21pub use conversation::{
22    AgentConversationError, AgentConversationOutcome, AutomaticConversationSummary,
23    ConversationAppend, ConversationContextPolicy, ConversationCreateOutcome, ConversationId,
24    ConversationSequence, ConversationStore, ConversationStoreError, ConversationStoreErrorKind,
25    ConversationStoreFuture, ConversationSummarizer, ConversationSummarizerError,
26    ConversationSummarizerFuture, ConversationSummary, ConversationSummaryBatch,
27    ConversationSummaryCommit, ConversationSummaryPassLimit, ConversationSummaryRequest,
28    ConversationTranscriptEntry, ConversationVersion, ConversationView, ConversationWindow,
29    DurableConversationCommit, DurableConversationRequest, DurableConversationStore,
30    InMemoryConversationStore, MemoryNamespace, SemanticMemory, SemanticMemoryId,
31    SemanticMemoryQuery, SemanticMemorySearchOutcome, SemanticMemorySource, SemanticMemoryUpsert,
32    SemanticMemoryUpsertOutcome,
33};
34pub use descriptor::AgentDescriptor;
35pub use error::AgentError;
36pub use gateway::{
37    AgentGateway, AgentRegistrationError, AgentRoute, GatewayError, GatewayErrorKind,
38};
39pub use middleware::{
40    DelegationRequest, GatewayDecision, GatewayFuture, GatewayMiddleware, GatewayNext,
41    GatewayPolicy, PolicyMiddleware,
42};
43pub use outcome::{AgentOutcome, StructuredAgentOutcome};
44pub use stream::{AgentEventStream, AgentStreamEvent, CallableKind};
45pub use structured::{StructuredAgent, StructuredAgentError};