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: [
{
type: "code_interpreter_call",
id: "<id>",
code: "<value>",
containerId: "<id>",
outputs: [
{
type: "image",
url: "https://lazy-poppy.biz",
},
],
status: "failed",
},
],
hasMore: true,
};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. |