Skip to main content

Response

typesafe_sdk.SystemOneResponse

pydantic-model Bases: Response Answers grouped by question type with model and usage metadata. See System One for details.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

request_id

cached property The x-typesafe-request-id response header.

raw_http_response

property
The underlying httpx2.Response, exposing status, headers, and body.

model_config

class-attribute instance-attribute

model

pydantic-field The model used to answer the request.

usage

pydantic-field Token usage for the request.

answers

pydantic-field All answer objects keyed by question name.

nouls

cached property Yes/no answers keyed by question name.

choices

cached property Choice answers keyed by question name.

scores

cached property Score answers keyed by question name.

boxes

cached property Box answers keyed by question name.

typesafe_sdk.Usage

pydantic-model Bases: wire.Usage Token counts for a request, when reported by the API.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

model_config

class-attribute instance-attribute

input_tokens

pydantic-field Number of input tokens used, or None when the API did not report it.

output_tokens

pydantic-field Number of output tokens used, or None when the API did not report it.

Answers

typesafe_sdk.NoulAnswer

pydantic-model Bases: wire.NoulAnswer A yes/no answer. See the noul primitive for details.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

noul

pydantic-field Probability of a yes answer or a true statement, from 0 to 1. Values near 1 favor yes or true, values near 0 favor no or false, and values near 0.5 indicate uncertainty.

model_config

class-attribute instance-attribute

typesafe_sdk.ChoiceAnswer

pydantic-model Bases: wire.ChoiceAnswer A selected label and its probabilities. See the choice primitive for details.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

choice

pydantic-field The name of the choice with the highest probability among the question’s criteria.

confidence

pydantic-field Confidence in the selected choice, from 0 to 1. Higher values indicate greater certainty; use lower values to flag uncertain selections for review.

probabilities

pydantic-field Probability of each choice in criteria, keyed by choice name, from 0 to 1. Shows how likely the alternatives are; values sum to approximately 1.

model_config

class-attribute instance-attribute

typesafe_sdk.ScoreAnswer

pydantic-model Bases: wire.ScoreAnswer An expected score with its rubric and probabilities. See the score primitive for details.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

score

pydantic-field Expected score: the probability-weighted average of the rubric levels. May fall between integer levels.

confidence

pydantic-field Confidence in the score, from 0 to 1. Higher values indicate greater certainty; use lower values to flag uncertain ratings for review.

model_config

class-attribute instance-attribute

legend

pydantic-field Rubric descriptions keyed by integer score.

probabilities

pydantic-field Probabilities keyed by integer score.

typesafe_sdk.BoxAnswer

pydantic-model Bases: wire.BoxAnswer A located box with its confidence.
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

model_config

class-attribute instance-attribute

box

pydantic-field The box’s edges as fractions of the image’s height and width, from 0 to 1.

confidence

pydantic-field Confidence for the box, from 0 to 1, or None when the model does not provide it.

typesafe_sdk.BoxCoordinates

pydantic-model Bases: wire.BoxCoordinates A box’s edges as fractions of the image’s height (top, bottom) and width (left, right).
Show JSON schema:
Config:
  • extra: ignore
  • frozen: True
  • strict: True
Fields:

top

pydantic-field Top edge of the box, as a fraction of image height from the top (0-1).

bottom

pydantic-field Bottom edge of the box, as a fraction of image height from the top (0-1).

left

pydantic-field Left edge of the box, as a fraction of image width from the left (0-1).

right

pydantic-field Right edge of the box, as a fraction of image width from the left (0-1).

model_config

class-attribute instance-attribute

typesafe_sdk.Answer

module-attribute An answer to a single question, identified by its type.

Available models

typesafe_sdk.ListModelsResponse

pydantic-model Bases: Response The models available to the account.
Show JSON schema:
Fields:

request_id

cached property The x-typesafe-request-id response header.

raw_http_response

property
The underlying httpx2.Response, exposing status, headers, and body.

model_config

class-attribute instance-attribute

models

pydantic-field The available models.

typesafe_sdk.ModelMetadata

pydantic-model Bases: Schema Metadata describing a single available model.
Show JSON schema:
Fields:

name

pydantic-field Model name or alias accepted by a request’s model field.

description

pydantic-field Human-readable description of the model and its capabilities.

release_date

pydantic-field Model release date, formatted as YYYY-MM-DD.