Skip to content

CompactResponseRequest

Request schema for compacting a response's conversation history into a condensed summary.

Example Usage

typescript
import { CompactResponseRequest } from "@meetkai/mka1/models/components";

let value: CompactResponseRequest = {
  model: "Volt",
};

Fields

FieldTypeRequiredDescription
modelstring✔️The model to use for generating the compaction summary.
inputcomponents.CompactResponseRequestInputText, image, or file inputs to the model, used to generate a response.
instructionsstringA system (or developer) message inserted into the model's context. When used along with previous_response_id, the instructions from a previous response will not be carried over to the next response. This makes it simple to swap out system (or developer) messages in new responses.
previousResponseIdstringThe ID of a previous response whose conversation history should be compacted. If omitted, only the provided input is compacted.