浏览器与电脑操作

jev-mobile

@Friedjof2PythonMIT更新于 2026-09-18可当场跑

使用 TypeSafe Jev 和 Mobile MCP 实现快速结构化的安卓控制循环。

英文原文

Fast structured Android control loops with TypeSafe Jev and Mobile MCP

Friedjof/jev-mobile

它在哪儿调用了 Jev

from typesafe_sdk import AsyncTypeSafeClient, Choice

src/jev_mobile/providers/jev.py:12

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

它问 Jev 的问题

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

取自 src/jev_mobile/providers/jev.py:119

  1. content_type选项

    Classify the requested note content. Choose UNKNOWN only if wording is ambiguous.

    • TEXT_NOTEWrite the supplied content as normal note body text.
    • CHECKLISTCreate a checklist from the supplied item candidates.
    • UNKNOWNThe wording does not determine a safe content type.

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    content_type: { type: 'choice', instructions: 'Classify the requested note content. Choose UNKNOWN only if wording is ambiguous.',
      criteria: { TEXT_NOTE: 'Write the supplied content as normal note body text.', CHECKLIST: 'Create a checklist from the supplied item candidates.', UNKNOWN: 'The wording does not determine a safe content type.' } },
  },
});

同类的其他项目