Core Types

This section documents the public data types exported from latticeflow.core.dtypes. These are the shared types used across the AI GO! SDK — messages, traces, model inputs and outputs, solver outputs, scoring structures, and the enums and type aliases that tie them together. Every type can be imported directly from the package:

from latticeflow.core.dtypes import Trace, SampleScore, SolverTrace, ModelResponse

The types are grouped into the pages linked below, one per area. Each page lists a type’s fields and, where applicable, its public properties and methods; enums list their allowed values. The Other Types page maps each type alias to its members and documents the supporting nested types.

Inputs & Messages

Messages Chat messages, their content items, function calls, and citations.
Model I/O Inputs and outputs for chat-completion, embeddings, and RAG models.

Execution & Results

Traces Execution traces and the events that make them up.
Solver Outputs Outputs and traces produced by solvers.
Scoring Per-sample scores and their status.
Evidence Evidence collected at the run, sample, and task-result levels.
Judges Inputs passed to judge solvers.

Platform

Assessment Assessment task execution, results, and metric data.
Progress Dataset and task progress state.
Base Model The shared LatticeFlow base model.

Other

Other Types Type aliases and supporting nested types.