fix(api): retain agent and observability re-exports

This commit is contained in:
Chummy 2026-02-17 19:07:29 +08:00
parent 4fca1abee8
commit 8f5da70283
2 changed files with 4 additions and 1 deletions

View file

@ -7,7 +7,7 @@ pub mod prompt;
#[allow(unused_imports)]
pub use agent::{Agent, AgentBuilder};
pub use loop_::run;
pub use loop_::{process_message, run};
#[cfg(test)]
mod tests {
@ -18,6 +18,7 @@ mod tests {
#[test]
fn run_function_is_reexported() {
assert_reexport_exists(run);
assert_reexport_exists(process_message);
assert_reexport_exists(loop_::run);
assert_reexport_exists(loop_::process_message);
}

View file

@ -6,9 +6,11 @@ pub mod traits;
pub mod verbose;
pub use self::log::LogObserver;
pub use self::multi::MultiObserver;
pub use noop::NoopObserver;
pub use otel::OtelObserver;
pub use traits::{Observer, ObserverEvent};
pub use verbose::VerboseObserver;
use crate::config::ObservabilityConfig;