Skip to main content

Module browser_agent

Module browser_agent 

Source
Expand description

Browser agent (P2 / B4) — page-aware helper for the Webizen browser.

Scope (honest):

  • Structured intents: summarise | trust | privacy | navigate_help | general.
  • Always return provenance + CML signals + trust verdict.
  • Optionally ingest page topics into the hypermedia library.
  • Deterministic grounded answers (no unbounded tools; 20s fetch timeout).
  • Local LLM path is optional and not required for acceptance.

Structs§

AgentTlsStatus
How agent HTTPS was configured (honesty for answers + UI).
BrowserAgentRequest
BrowserAgentResponse

Enums§

BrowserAgentIntent

Functions§

agent_tls_status
build_agent_http_client
Build reqwest client: custom roots when enabled PEMs present; else system default.
classify_intent
Classify the user question into a bounded intent.
fetch_page_text
Fetch page body (best-effort HTML → text). Aligns TLS policy with trust store when possible.
fetch_page_text_with_storage
run_browser_agent
Run the browser agent against the current page.