ov.agents.analyst#
The Analyst agents (UX + Arch) — grounded judgment over an evidence bundle.
The hard architectural seam (§8.1, D4): analysts never touch the live browser. They consume a deterministic, model-free evidence bundle — marked screenshots + derived facts + a cite-or-abstain contract — and add narrative judgment on top. The package supplies three reused-unchanged pieces and the agent wires them:
build_evidence_bundle()assembles the bundle (Set-of- Mark regions, computed token budget);the injected
judge(an LLM under the cite-or-abstain contract) returns candidateFinding`s (``source_layer="llm"`);verify_findings()gates them — any claim without a resolvable evidence ref (or referencing an unknown mark) is **downgraded to ``undetermined``**, never silently dropped.
So the model interprets; it never authors facts. The judge is injected (DI), so the
agent is unit-testable with a stub that returns canned findings — no API call, no
vision model. UX routes to Sonnet, Arch to Opus (§10). Satisfies aw.AgenticStep.
Module Attributes
A judge maps an evidence bundle to candidate findings (dicts or Findings). |
Functions
|
A software-architecture analyst (Opus-routed). |
|
A UX/accessibility analyst (Sonnet-routed). |
Classes
|
Interpret a captured run's evidence bundle into grounded findings (UX or Arch). |
- class ov.agents.analyst.AnalystAgent(lens, llm=None, judge=None, model=None, max_marks=20, task=None, name='')[source]#
Bases:
objectInterpret a captured run’s evidence bundle into grounded findings (UX or Arch).
- Parameters:
lens (
str) –"ux"or"arch"— selects default model + finding defaults.llm (
Any) – the injected LLM (a callable, an object exposingstructuredfor the multimodal path, anawStepConfig, orNone). Ignored if ajudgeis given.judge (
Optional[Callable[...,list]]) –(bundle, *, run, store) -> list[Finding | dict]. Override the whole LLM step (tests, alternative providers). Defaults to_default_judge().model (
Optional[str]) – model selector for the image-budget + info (defaults from the lens).max_marks (
int) – cap on Set-of-Mark regions in the bundle.
- execute(input_data, context=None)[source]#
Analyze a run (or a prebuilt bundle) →
(verified_findings, info)(aw protocol).input_datamay be aCaptureRun, anEvidenceBundle, or a mapping carryingrun/store/bundle. The verified LLM findings are appended torun.findings(additive —source_layerkeeps them distinct from deterministic facts) and returned.
- ov.agents.analyst.Judge#
A judge maps an evidence bundle to candidate findings (dicts or Findings).
alias of
Callable[[…],list]
- ov.agents.analyst.arch_analyst(llm=None, **kwargs)[source]#
A software-architecture analyst (Opus-routed).
llmis the injected model.>>> arch_analyst().model 'opus'
- Return type: