TypeSafe's System One wire format (Effect's TypeSafeSchema): the
questions of a /systemone request, the answers of its response and the
/models list, as TypedDict types with their schemas.
Values#
| Attribute | Type | Description |
|---|---|---|
ENTRY | Bottom[str | dict[str, bool | int | float | str | Sequence[JsonValue] | Mapping[str, JsonValue] | None] | tuple[bool | int | float | str | Sequence[JsonValue] | Mapping[str, JsonValue] | None, ...] | None, str | Mapping[str, bool | int | float | str | Sequence[JsonValue] | Mapping[str, JsonValue] | None] | Sequence[bool | int | float | str | Sequence[JsonValue] | Mapping[str, JsonValue] | None] | None, Never, Never] | |
CHOICE_QUESTION | StructSchema[ChoiceQuestion, Never, Never] | |
SCORE_QUESTION | StructSchema[ScoreQuestion, Never, Never] | |
NOUL_QUESTION | StructSchema[NoulQuestion, Never, Never] | |
BOX_QUESTION | StructSchema[BoxQuestion, Never, Never] | |
QUESTION | UnionSchema[ChoiceQuestion | ScoreQuestion | NoulQuestion | BoxQuestion, Mapping[str, object], Never, Never] | |
IMAGE_ASSET | StructSchema[ImageAsset, Never, Never] | |
SYSTEM_ONE_REQUEST | StructSchema[SystemOneRequest, Never, Never] | |
CHOICE_ANSWER | StructSchema[ChoiceAnswer, Never, Never] | |
SCORE_ANSWER | StructSchema[ScoreAnswer, Never, Never] | |
NOUL_ANSWER | StructSchema[NoulAnswer, Never, Never] | |
BOX_ANSWER | StructSchema[BoxAnswer, Never, Never] | |
ANSWER | UnionSchema[ChoiceAnswer | ScoreAnswer | NoulAnswer | BoxAnswer, Mapping[str, object], Never, Never] | |
SYSTEM_ONE_RESPONSE | StructSchema[SystemOneResponse, Never, Never] | |
LIST_MODELS_RESPONSE | StructSchema[ListModelsResponse, Never, Never] |
Types#
| Type | Definition | Description |
|---|---|---|
Entry | type Entry = str | Mapping[str, JsonValue] | Sequence[JsonValue] | None | Instructions or a description: a string, a JSON object, a JSON array or
|
Question | type Question = ChoiceQuestion | ScoreQuestion | NoulQuestion | BoxQuestion | |
Answer | type Answer = ChoiceAnswer | ScoreAnswer | NoulAnswer | BoxAnswer |