Represent conversations in Cases
Definition
A canonical Case input can represent a multi-message interaction when correctness depends on prior turns, accumulated context, or state carried across an exchange. “Conversation” describes the shape of the Case input; it is not a separate first-class object or a public schema guarantee.
Use this reference when review or evaluation depends on exactly which messages were available before the response being judged.
Fields, states, or lifecycle rules
- Preserve the message order and roles needed to interpret the Case.
- Identify the response being judged separately from prior user or assistant messages.
- Store supporting documents or structured material according to the Project Input Schema instead of flattening everything into message text.
- Removing, reordering, or summarizing material can change the Case and should follow the normal Case version boundary.
- Output mapping joins an external response to the Case ID; it does not repair missing conversational context.
- Use Case Serialization and Import and Prepare Cases to map the conversation into the Case's declared input structure.
Related objects
Read this representation with Cases, Outputs, Project Input Schema, and Metadata and context.
Worked example
Plan context carried across turns
A user first identifies an enterprise plan, then asks whether a feature is available. The later response can only be judged correctly if the earlier plan message remains part of the canonical Case input. If that message is removed, create a new Case version rather than trying to restore it during output mapping.
