Jev AI

mastra-jev-moderation

Mastra input processor that asks Jev a `Boolean` "must this message be blocked?" plus a category `Choice` in one request, aborting the turn at 0.7 and failing open behind a deadline and circuit breaker; in production it blocked 9/9 hostile and 0/49 real messages at ~0.4 s median, about 4× cheaper than an LLM moderator.

作者
CodeAlive-AI
领域
AI assistants
分类
内容审核
类型
REPO
托管于
github.com
在 GITHUB 上查看

它做什么判断

CHOICE

Picks one option from a fixed set

SCORE

Rates against ordered levels

NOUL

Answers a yes / no question

Inferred from this project's own one-line summary in the community list — it reads as a CHOICE + NOUL decision. Read the source to confirm.

CHOICE 调用长什么样

这是该提问类型的通用骨架,不是这个项目的真实代码。

from typesafe import TypeSafe

ts = TypeSafe()  # reads TYPESAFE_API_KEY
result = ts.evaluate(
    state=page_state,
    questions={
        "next_action": {
            "type": "choice",
            "options": ["click", "scroll", "type", "done"],
            "instructions": "What should the agent do next?",
        }
    },
)
action = result["next_action"]          # the chosen option
confidence = result["next_action_confidence"]
更多内容审核项目