Typed decision/classification service with an in-process gte-small ONNX embedding engine and lexical fallback, JS/Python SDKs, adapters, and the otsone model family. Apache-2.0 (sub-packages keep their MIT licenses). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
1.1 KiB
Python
15 lines
1.1 KiB
Python
from openjev import ChoiceModel, NoulModel, Question, ScoreModel
|
|
|
|
choice: ChoiceModel = {"type": "noul", "instructions": "?", "criteria": {"a": None}} # E: is not assignable to TypedDict key `type`
|
|
noul: NoulModel = {"type": "choice", "instructions": "?"} # E: is not assignable to TypedDict key `type`
|
|
score: ScoreModel = {"type": "choice", "instructions": "?", "criteria": ["a"]} # E: is not assignable to TypedDict key `type`
|
|
|
|
missing_type: NoulModel = {"instructions": "?"} # E: Missing required key `type`
|
|
missing_choice_criteria: ChoiceModel = {"type": "choice"} # E: Missing required key `criteria`
|
|
missing_score_criteria: ScoreModel = {"type": "score"} # E: Missing required key `criteria`
|
|
bad_extra: NoulModel = {"type": "noul", "extra": "future"} # E: is not defined
|
|
bad_criteria: ChoiceModel = {"type": "choice", "criteria": ["a"]} # E: is not assignable
|
|
bad_score_criteria: ScoreModel = {"type": "score", "criteria": {0: "a"}} # E: is not assignable
|
|
bad_question: Question = {"unrelated": "value"} # E: is not assignable
|
|
bad_question_type: Question = {"type": 123} # E: is not assignable
|