浏览器与电脑操作

jev-agent-browser

@forvela4JavaScriptMIT更新于 2026-09-19可当场跑

基于Jev和agent-browser的快速受限浏览器agent,支持类型化操作、研究、分类和安全编排。

英文原文

Fast, bounded browser agents powered by Jev and agent-browser — typed actions, research, classification, and safe orchestration.

forvela/jev-agent-browser

它在哪儿调用了 Jev

const DEFAULT_ENDPOINT = 'https://api.typesafe.ai/v1/systemone';

src/decision.js:3

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 test/loop.test.js:125

  1. operation选项

    Choose the next browser operation.

    • CLICKChoose a current control, filter, menu, pagination link, or clearly requested content target. Prefer controls over content cards and do not repeat an already executed click.
    • SCROLL_UPExecute SCROLL_UP.
    • SCROLL_DOWNExecute SCROLL_DOWN.
    • BACKExecute BACK.
    • WAITExecute WAIT.
    • DONEExecute DONE.
  2. click_target选项

    Choose the current browser ref targeted by the operation. Prefer exact filter/menu controls over similarly named result cards.

    • none_of_the_aboveNo current ref is an appropriate target.
    • e1button/control/Go
  3. goal_reached是/否

    Estimate whether the requested goal has been reached.

  4. stuck是/否

    Estimate whether the browser agent is stuck.

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    operation: { type: 'choice', instructions: 'Choose the next browser operation.',
      criteria: { CLICK: 'Choose a current control, filter, menu, pagination link, or clearly requested content target. Prefer controls over content cards and do not repeat an already executed click.', SCROLL_UP: 'Execute SCROLL_UP.', SCROLL_DOWN: 'Execute SCROLL_DOWN.', BACK: 'Execute BACK.', WAIT: 'Execute WAIT.', DONE: 'Execute DONE.' } },
    click_target: { type: 'choice', instructions: 'Choose the current browser ref targeted by the operation. Prefer exact filter/menu controls over similarly named result cards.',
      criteria: { none_of_the_above: 'No current ref is an appropriate target.', e1: 'button/control/Go' } },
    goal_reached: { type: 'boolean', instructions: 'Estimate whether the requested goal has been reached.' },
    stuck: { type: 'boolean', instructions: 'Estimate whether the browser agent is stuck.' },
  },
});

同类的其他项目