浏览器与电脑操作
使用 TypeSafe Jev 和 Mobile MCP 实现快速结构化的安卓控制循环。
Fast structured Android control loops with TypeSafe Jev and Mobile MCP
from typesafe_sdk import AsyncTypeSafeClient, Choicesrc/jev_mobile/providers/jev.py:12
链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
取自 src/jev_mobile/providers/jev.py:119
content_type选项Classify the requested note content. Choose UNKNOWN only if wording is ambiguous.
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.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.' } },
},
});