Games & simulation
Camera-only autonomous drone in MuJoCo with a small judgment model (TypeSafe Jev) in the loop at 2.5Hz
from typesafe_sdk import TypeSafeClient, Choice, Noul, ScoreThe link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from tactics.py:65
riskscoreHow dangerous is the drone's immediate situation?
0 — clear and open1 — tight but manageable2 — about to hit somethingimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
risk: { type: 'score', instructions: 'How dangerous is the drone\'s immediate situation?',
criteria: ['clear and open', 'tight but manageable', 'about to hit something'] },
},
});from tunnel_tactics.py:54
riskscoreHow close is this aircraft to hitting something?
0 — open tunnel1 — must commit to a move now2 — impact unavoidableimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
risk: { type: 'score', instructions: 'How close is this aircraft to hitting something?',
criteria: ['open tunnel', 'must commit to a move now', 'impact unavoidable'] },
},
});