Skip to main content

Module classify

Module classify 

Source
Expand description

Classifier and image-generation requests and results.

Mirrors ClassifierContext, ClassifierResult, ImagesContext and AssistantImages in packages/ai/src/types.ts in pi v1.0.0.

Structs§

AssistantImages
Images, and any text, an image model returned.
BoolCriteria
The meaning of each answer of a bool question.
ClassifierContext
What a classifier judges, and the questions to answer about it.
ClassifierResult
A classification’s answers, by question id.
ImagesContext
The prompt and reference images of an image request.

Enums§

ClassifierAnswer
One answer, tagged by type.
ClassifierQuestion
One question about the state, tagged by type.
ImagesContent
A text or image block of an image request or result.
OutcomeReason
How a classification or image request ended.