Skip to main content

Module agent

Module agent 

Source
Available on crate feature cdp only.
Expand description

Agent 编排层:observe / 语义定位 / 等待。仅 cdp。见 docs/Agent运行时.md。 Browser Agent Runtime:语义动作,不让 LLM 直接写 DOM 选择器。

observe()  →  AX / snapshot(role + name + ref)
find()     →  Locator Resolver(AX → DOM/文本 → 截图空间 → OCR)
click / type_text / wait_for

现有 Tab / ele / wait 全部保留。本模块是编排层。

Structs§

AgentBrowser
浏览器上的 Agent 入口。不拥有 Browser。
AgentElement
解析后的可点元素。
AgentPage
包一层 ChromiumTab:observe / 语义查找 / 等待。
FindOp
find(hint) 的后续动作。
Observation
一次观察:大纲给人/LLM 读,actions 给下一步点按。
SemanticTarget
语义目标。LLM 只应看见 role / name,不要自己拼 CSS。