mod agent;
mod agent_loop;
pub mod binding;
pub mod coding;
mod errors;
pub mod events;
mod interactive;
#[cfg(feature = "mcp")]
pub mod mcp;
pub mod observability;
pub mod paths;
pub mod permissions;
pub mod process;
mod profile;
pub mod profiles;
pub mod providers;
#[doc(hidden)]
pub mod runtime {
pub use merry_core::{RuntimeJournalEvent, RuntimeJournalPayload};
pub use merry_runtime::{
AgentLoopControl, AgentLoopInput, AgentLoopResult, AgentRun, AgentRunMessage,
CitationCompactionPolicy, DEFAULT_CONTEXT_WINDOW_FALLBACK_TOKENS,
DEFAULT_FOREGROUND_WAIT_BUDGET_SECS, DurableMemory, FinalOutputContract, InteractiveError,
InteractiveRunEventStream, InteractiveRunMessage, InteractiveSubagentSettings,
LoadedSession, MemoryLayout, ProjectRules, RegisteredTool, Runtime, RuntimeBuilder,
RuntimeError, RuntimeModelRole, RuntimeProfile, RuntimeProfileBuilder, SessionReservation,
SessionStoreError, StepContext, StepInput, SubagentConfig, SubagentLimitBehavior,
ToolExecutionContext, ToolExecutionError, ToolExecutionOutcome, ToolExecutor,
ToolExecutorFuture,
};
}
#[doc(hidden)]
pub mod rust {
pub use super::agent::{
AgentRun, AgentRunMessage, ToolInvocation, ToolInvocationBatch, ToolInvocationContent,
ToolInvocationContentError, ToolInvocationResult, ToolInvocationSubmission,
};
pub use super::interactive::{
InteractiveMessage, InteractiveToolInvocation, InteractiveToolInvocationBatch,
};
pub use super::stream::StructuredAgentRun;
}
mod run_result;
mod stream;
pub mod tools;
pub use agent::{Agent, AgentBuilder, RunResult};
pub use agent_loop::{coding_agent_loop_config, generic_agent_loop_config};
pub use errors::{AgentBuildError, AgentError, AgentProfileError};
pub use interactive::{
InteractiveControl, InteractiveEventStream, InteractiveInput, InteractiveInputItem,
InteractiveInputSnapshot, InteractiveRun,
};
pub use merry_core::{
ContextWindowSource, RuntimeEvent, SessionId, ToolCallArguments, ToolName, ToolOutput,
};
pub use merry_llm::{
GenerationConfig, ModelName, ModelProvider, ModelRetryPolicy, ParallelToolCalls,
ReasoningEffort, ServiceTier,
};
pub use merry_runtime::{
AUTO_COMPACT_THRESHOLD_PERCENT, AfterModelDecision, AfterModelStepContext,
AfterToolCallContext, AfterToolDecision, AgentLoopBlockedReason, AgentLoopConfig,
AgentLoopConfigError, AgentLoopStatus, ArchiveConfig, BeforeModelDecision,
BeforeModelStepContext, BeforeToolCallContext, BeforeToolDecision, CitationCompactionPolicy,
CompactionConfig, CompactionError, CompactionOutcome, CompactionPrompt, FINAL_OUTPUT_TOOL_NAME,
FileSessionStore, FinalOutput, HistoryRetention, HookDecision, HookError, HookFuture,
HookInvocation, HookInvocationId, HookPoint, HookRegistry, HookRequest, HookSubscriptions,
InteractivePrimaryModel, InteractiveProcessExecutionUpdate, InteractiveSettingsUpdate,
InterruptReason, PromptBlock, PromptError, PromptProfile, QueuedInputId, RuntimeHookHandler,
RuntimeModelRole, StructuredOutputRetryPolicy, ToolHookFilter,
};
pub use profile::{AgentProfile, AgentProfileContext};
pub use stream::{AgentEventStream, StructuredAgentEventStream, StructuredRunResult};
pub use tools::{Tool, ToolBuildError, ToolSpec, tool};