autoagents 0.4.0

Agent Framework for Building Autonomous Agents
Documentation
// Re-export for convenience
pub use async_trait::async_trait;
pub use autoagents_core::{self as core, error as core_error};
pub use autoagents_llm::{self as llm, error as llm_error};
pub use autoagents_protocol as protocol;
pub mod prelude;

#[inline]
/// Initialize logging using env_logger if the "logging" feature is enabled.
/// This is a no-op if the feature is not enabled.
pub fn init_logging() {
    #[cfg(feature = "logging")]
    {
        let _ = env_logger::try_init();
    }
}

#[cfg(test)]
mod tests {
    use super::init_logging;

    #[test]
    fn init_logging_is_safe_to_call_multiple_times() {
        init_logging();
        init_logging();
    }
}