ResponseListObject
Paginated list object containing responses with cursor-based pagination metadata.
Example Usage
typescript
import { ResponseListObject } from "@meetkai/mka1/models/components";
let value: ResponseListObject = {
object: "list",
data: [
{
id: "<id>",
object: "response",
createdAt: 6494,
status: "in_progress",
error: {
code: "<value>",
message: "<value>",
},
incompleteDetails: {
reason: "<value>",
},
background: false,
instructions: "<value>",
maxOutputTokens: 699108,
maxToolCalls: 489759,
metadata: {
"key": "<value>",
"key1": "<value>",
},
model: "Altima",
output: [
{
type: "file_search_call",
id: "<id>",
queries: [
"<value 1>",
],
status: "failed",
},
],
parallelToolCalls: false,
previousResponseId: null,
reasoning: {
effort: "low",
summary: "auto",
},
store: true,
temperature: 5301.67,
text: {
format: {
type: "json_object",
},
},
toolChoice: {
type: "function",
name: "<value>",
},
tools: [],
topP: 3338.49,
truncation: "auto",
usage: {
inputTokens: 945279,
inputTokensDetails: {
cachedTokens: 705508,
},
outputTokens: 760458,
outputTokensDetails: {
reasoningTokens: 925967,
},
totalTokens: 422059,
},
user: "Karen88",
},
],
hasMore: true,
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
object | "list" | ✔️ | The object type, always 'list' for paginated list responses. |
data | components.ResponseObject[] | ✔️ | Array of response objects. Each response contains its status, model, input/output, tool usage logs, metadata, and completion information. |
firstId | string | ➖ | The ID of the first response in the current page. Used as a reference point for pagination. |
lastId | string | ➖ | The ID of the last response in the current page. Used as a cursor for fetching the next page. |
hasMore | boolean | ✔️ | Indicates whether there are more responses available beyond the current page. True if additional pages exist, false otherwise. |