1mod agent;
48mod agent_loop;
49pub mod binding;
50pub mod coding;
51mod errors;
52pub mod events;
53mod interactive;
54#[cfg(feature = "mcp")]
55pub mod mcp;
56pub mod observability;
57pub mod paths;
58pub mod permissions;
59pub mod process;
60mod profile;
61pub mod profiles;
62pub mod providers;
63#[doc(hidden)]
64pub mod runtime {
65 pub use merry_core::{RuntimeJournalEvent, RuntimeJournalPayload};
68 pub use merry_runtime::{
69 AgentLoopControl, AgentLoopInput, AgentLoopResult, AgentRun, AgentRunMessage,
70 CitationCompactionPolicy, DEFAULT_CONTEXT_WINDOW_FALLBACK_TOKENS,
71 DEFAULT_FOREGROUND_WAIT_BUDGET_SECS, DurableMemory, FinalOutputContract, InteractiveError,
72 InteractiveRunEventStream, InteractiveRunMessage, InteractiveSubagentSettings,
73 LoadedSession, MemoryLayout, ProjectRules, RegisteredTool, Runtime, RuntimeBuilder,
74 RuntimeError, RuntimeModelRole, RuntimeProfile, RuntimeProfileBuilder, SessionReservation,
75 SessionStoreError, StepContext, StepInput, SubagentConfig, SubagentLimitBehavior,
76 ToolExecutionContext, ToolExecutionError, ToolExecutionOutcome, ToolExecutor,
77 ToolExecutorFuture,
78 };
79}
80#[doc(hidden)]
86pub mod rust {
87 pub use super::agent::{
88 AgentRun, AgentRunMessage, ToolInvocation, ToolInvocationBatch, ToolInvocationContent,
89 ToolInvocationContentError, ToolInvocationResult, ToolInvocationSubmission,
90 };
91 pub use super::interactive::{
92 InteractiveMessage, InteractiveToolInvocation, InteractiveToolInvocationBatch,
93 };
94 pub use super::stream::StructuredAgentRun;
95}
96mod run_result;
97mod stream;
98pub mod tools;
99
100pub use agent::{Agent, AgentBuilder, RunResult};
101pub use agent_loop::{coding_agent_loop_config, generic_agent_loop_config};
102pub use errors::{AgentBuildError, AgentError, AgentProfileError};
103pub use interactive::{
104 InteractiveControl, InteractiveEventStream, InteractiveInput, InteractiveInputItem,
105 InteractiveInputSnapshot, InteractiveRun,
106};
107pub use merry_core::{
108 ContextWindowSource, RuntimeEvent, SessionId, ToolCallArguments, ToolName, ToolOutput,
109};
110pub use merry_llm::{
111 GenerationConfig, ModelName, ModelProvider, ModelRetryPolicy, ParallelToolCalls,
112 ReasoningEffort, ServiceTier,
113};
114pub use merry_runtime::{
115 AUTO_COMPACT_THRESHOLD_PERCENT, AfterModelDecision, AfterModelStepContext,
116 AfterToolCallContext, AfterToolDecision, AgentLoopBlockedReason, AgentLoopConfig,
117 AgentLoopConfigError, AgentLoopStatus, ArchiveConfig, BeforeModelDecision,
118 BeforeModelStepContext, BeforeToolCallContext, BeforeToolDecision, CitationCompactionPolicy,
119 CompactionConfig, CompactionError, CompactionOutcome, CompactionPrompt, FINAL_OUTPUT_TOOL_NAME,
120 FileSessionStore, FinalOutput, HistoryRetention, HookDecision, HookError, HookFuture,
121 HookInvocation, HookInvocationId, HookPoint, HookRegistry, HookRequest, HookSubscriptions,
122 InteractivePrimaryModel, InteractiveProcessExecutionUpdate, InteractiveSettingsUpdate,
123 InterruptReason, PromptBlock, PromptError, PromptProfile, QueuedInputId, RuntimeHookHandler,
124 RuntimeModelRole, StructuredOutputRetryPolicy, ToolHookFilter,
125};
126pub use profile::{AgentProfile, AgentProfileContext};
127pub use stream::{AgentEventStream, StructuredAgentEventStream, StructuredRunResult};
128pub use tools::{Tool, ToolBuildError, ToolSpec, tool};