> ## Documentation Index
> Fetch the complete documentation index at: https://docs.headwaters.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Systemone

> TypeSafe Jev's System One API: `state` and `questions` keyed by id, answered in Jev's
format. `model` is `@face:maestro-1/<decision model>` (a composite
`(@a | @b):maestro-1/<dm>` too, operators | & - ^; `@owner~face` for another account's
face; `maestro-1-flash` for the steering sooner, at 10x on the steering). No `cause` is
returned. OpenAI's Decisions format is served at POST /v1/decisions.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/systemone
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/systemone:
    post:
      tags:
        - Decisions
      summary: Systemone
      description: >-
        TypeSafe Jev's System One API: `state` and `questions` keyed by id,
        answered in Jev's

        format. `model` is `@face:maestro-1/<decision model>` (a composite

        `(@a | @b):maestro-1/<dm>` too, operators | & - ^; `@owner~face` for
        another account's

        face; `maestro-1-flash` for the steering sooner, at 10x on the
        steering). No `cause` is

        returned. OpenAI's Decisions format is served at POST /v1/decisions.
      operationId: systemone_v1_systemone_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemOneResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DecisionsRequest:
      description: >-
        TypeSafe Jev's System One request, at POST /v1/systemone. `model` is

        `@face:maestro-1/<decision model>` (a composite `(@a |
        @b):maestro-1/<dm>` too), a decision

        model alone (jev-latest, clef, clef-flash), or `@face:maestro-1` (the
        face's cause alone,

        no questions). With a face, `state` is the turn the face

        is responding to.
      properties:
        model:
          minLength: 1
          title: Model
          type: string
        state:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
            - items: {}
              type: array
          title: State
        questions:
          additionalProperties:
            $ref: '#/components/schemas/DecisionQuestion'
          maxProperties: 32
          title: Questions
          type: object
      required:
        - model
        - state
      title: DecisionsRequest
      type: object
    SystemOneResponse:
      properties:
        model:
          type: string
          title: Model
        answers:
          additionalProperties:
            $ref: '#/components/schemas/SystemOneAnswer'
          type: object
          title: Answers
        cause:
          anyOf:
            - type: string
            - type: 'null'
          title: Cause
        causes:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Causes
        usage:
          $ref: '#/components/schemas/DecisionUsage'
        answered_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Answered By
        fallback:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Fallback
      type: object
      required:
        - model
        - usage
      title: SystemOneResponse
      description: >-
        TypeSafe Jev's System One response, at POST /v1/systemone. With a face,
        `cause` (the

        first question's) and `causes` (one per question id) are added; a face
        alone with no

        questions returns `model`, `cause` and `usage`.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DecisionQuestion:
      description: |-
        One question. `criteria` by type, as Jev takes it:
        noul   optional {"true":.., "false":..};
        choice {option: description or null}, 2 to 255 options;
        score  [level descriptions] in order, 2 to 10 levels.
      properties:
        type:
          type: string
          enum:
            - noul
            - choice
            - score
          title: Type
        instructions:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
            - items: {}
              type: array
          title: Instructions
        criteria:
          anyOf:
            - additionalProperties:
                anyOf:
                  - type: string
                  - additionalProperties: true
                    type: object
                  - items: {}
                    type: array
                  - type: 'null'
              type: object
            - items:
                anyOf:
                  - type: string
                  - additionalProperties: true
                    type: object
                  - items: {}
                    type: array
              type: array
            - type: 'null'
          default: null
          title: Criteria
      required:
        - type
        - instructions
      title: DecisionQuestion
      type: object
    SystemOneAnswer:
      properties:
        type:
          type: string
          enum:
            - noul
            - choice
            - score
          title: Type
        noul:
          anyOf:
            - type: number
            - type: 'null'
          title: Noul
        choice:
          anyOf:
            - type: string
            - type: 'null'
          title: Choice
        score:
          anyOf:
            - type: number
            - type: 'null'
          title: Score
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
        probabilities:
          anyOf:
            - additionalProperties:
                type: number
              type: object
            - type: 'null'
          title: Probabilities
      type: object
      required:
        - type
      title: SystemOneAnswer
      description: >-
        One answer, keyed by its question's id. `noul` answers carry `noul` (the
        probability of

        yes); `choice` and `score` carry the pick, `confidence` and
        `probabilities`.
    DecisionUsage:
      properties:
        input_tokens:
          type: integer
          title: Input Tokens
        output_tokens:
          type: integer
          title: Output Tokens
        input_tokens_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Tokens Details
        output_tokens_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Output Tokens Details
        total_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Tokens
      type: object
      required:
        - input_tokens
        - output_tokens
      title: DecisionUsage
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.