Expand description
Wire types for the System One API.
Question is what you send; Answer / SystemOneResponse is what you
get back. Entry is TypeSafe’s string | object | array | null slot used
for instructions and criteria.
Structs§
- Choice
View - Borrowed view of a Choice answer.
- List
Models Response - Wire body for
GET /v1/models. - Model
Card - Metadata for an available model.
- Noul
Criteria - Optional yes/no descriptions for a Noul question.
- Noul
View - Borrowed view of a Noul answer.
- Response
Meta - Metadata captured from the HTTP response (not part of the JSON body).
- Score
View - Borrowed view of a Score answer.
- System
OneRequest - Request body for
POST /v1/systemone. - System
OneResponse - Parsed
POST /v1/systemoneresponse. - Usage
- Token usage reported by the API.
Enums§
- Answer
- A typed answer, or
Answer::Unknownfor forward-compatible types. - Entry
- Text, structured JSON, or
nullfor state, instructions, and criteria. - Question
- A typed System One question.
Constants§
- MAX_
CHOICE_ OPTIONS - Maximum number of Choice options accepted by client-side validation.
Functions§
- validate_
questions - Validate a question map before sending it on the wire.
Type Aliases§
- Questions
- Ordered map of named questions, keyed as they should appear in answers.