Skip to main content

browsing/
lib.rs

1//! Browsing: Autonomous web browsing for AI agents
2//!
3//! This library provides tools for AI agents to automate web browsing tasks.
4
5pub mod actor;
6pub mod agent;
7pub mod browser;
8pub mod config;
9pub mod dom;
10pub mod error;
11pub mod llm;
12pub mod logging;
13pub mod metrics;
14pub mod tokens;
15pub mod tools;
16pub mod traits;
17pub mod utils;
18pub mod views;
19
20pub use error::{BrowsingError, Result};
21
22// Re-export main types
23pub use actor::{Element, Mouse, Page};
24pub use agent::Agent;
25pub use browser::Browser;
26pub use config::Config;
27pub use llm::{ChatInvokeCompletion, ChatInvokeUsage, ChatMessage, ChatModel};
28pub use traits::{BrowserClient, DOMProcessor};
29
30/// Initialize the library (sets up logging, etc.)
31pub fn init() {
32    logging::setup_logging();
33}