InputItemListObject
Paginated list object containing input items for a response with cursor-based pagination metadata.
Example Usage
typescript
import { InputItemListObject } from "@meetkai/mka1/models/components";
let value: InputItemListObject = {
object: "list",
data: [
{
role: "user",
content: "What is the capital of France?",
id: "msg_aa87e2b1112a455b8deabed784372198",
},
],
firstId: "item_abc123",
lastId: "item_abc123",
hasMore: false,
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
object | "list" | ✔️ | The object type, always 'list' for paginated list responses. |
data | components.Item[] | ✔️ | Array of input items (messages, prompts, instructions) that were provided when creating the response. Each item contains its type, content, role, and metadata. |
firstId | string | ➖ | The ID of the first item in the current page. Used as a reference point for pagination. |
lastId | string | ➖ | The ID of the last item in the current page. Used as a cursor for fetching the next page. |
hasMore | boolean | ✔️ | Indicates whether there are more items available beyond the current page. True if additional pages exist, false otherwise. |