Full integration:
- install.sh now installs camoufox-browser via npm (preferred) or Docker
- install.sh creates systemd/launchd auto-start service on Linux/macOS
- New browser_manager.rs — health-check, auto-start, wait-for-ready
- AgentLoop::run() auto-inits Camoufox and registers web_search/web_browse
- System prompt tells LLM to use web_search/web_browse as PRIMARY tools
- Graceful fallback: if Camoufox unavailable, logs warning, uses bash tools
- ToolExecutor is now Arc<Mutex<>> for runtime tool registration
GyanDoot v2 now: install → Camoufox auto-starts → web tools available →
"search NSE India" uses Camoufox with anti-detection 🎯
15 lines
628 B
Rust
15 lines
628 B
Rust
//! GyanDoot Agent — Core agent loop, tool execution, context compression.
|
|
//!
|
|
//! This crate implements the main agent inference loop: receiving messages,
|
|
//! invoking LLM providers, executing tool calls, compressing context when
|
|
//! needed, and interacting with memory.
|
|
|
|
pub mod agent_loop;
|
|
pub mod browser_manager;
|
|
pub mod browser_tools;
|
|
pub mod tools;
|
|
pub mod context;
|
|
|
|
pub use agent_loop::{AgentLoop, AgentErrorKind, ConversationOutput, RetryConfig};
|
|
pub use tools::{BuiltinTool, BashTool, BashToolConfig, Tool, ToolExecutor, ReadTool, WriteTool, EditTool, GrepTool, FindTool, LsTool};
|
|
pub use context::ContextCompressor; |