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 tokens;
14pub mod tools;
15pub mod traits;
16pub mod utils;
17pub mod views;
18
19pub use error::{BrowsingError, Result};
20
21// Re-export main types
22pub use actor::{Element, Mouse, Page};
23pub use agent::Agent;
24pub use browser::Browser;
25pub use config::Config;
26pub use llm::{ChatInvokeCompletion, ChatInvokeUsage, ChatMessage, ChatModel};
27pub use traits::{BrowserClient, DOMProcessor};
28
29/// Initialize the library (sets up logging, etc.)
30pub fn init() {
31    logging::setup_logging();
32}