mod agent;
mod agent_loop;
pub mod binding;
mod errors;
mod interactive;
mod profile;
pub mod profiles;
pub mod providers;
#[doc(hidden)]
pub mod runtime {
pub use merry_runtime::{
AgentLoopResult, AgentRun, AgentRunMessage, Runtime, RuntimeBuilder, RuntimeError,
RuntimeModelRole, RuntimeProfile, RuntimeProfileBuilder,
};
}
#[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::RuntimeEvent;
pub use merry_core::SessionId;
pub use merry_llm::{
GenerationConfig, ModelName, ModelProvider, ModelRetryPolicy, ParallelToolCalls,
ReasoningEffort, ServiceTier,
};
pub use merry_runtime::{
AgentLoopBlockedReason, AgentLoopConfig, AgentLoopConfigError, AgentLoopStatus, ArchiveConfig,
CompactionConfig, FINAL_OUTPUT_TOOL_NAME, FileSessionStore, FinalOutput, HistoryRetention,
InteractivePrimaryModel, InterruptReason, PromptBlock, PromptError, PromptProfile,
QueuedInputId, StructuredOutputRetryPolicy,
};
pub use profile::{AgentProfile, AgentProfileContext};
pub use stream::{AgentEventStream, StructuredAgentEventStream, StructuredRunResult};
pub use tools::{Tool, ToolBuildError, ToolSpec, tool};