ResponseObject
Example Usage
typescript
import { ResponseObject } from "@meetkai/mka1/models/components";
let value: ResponseObject = {
id: "<id>",
object: "response",
createdAt: 6080.39,
status: "completed",
error: {
code: "<value>",
message: "<value>",
},
incompleteDetails: {
reason: "<value>",
},
background: true,
instructions: null,
maxOutputTokens: null,
maxToolCalls: 846401,
metadata: {},
model: "Aventador",
output: [],
parallelToolCalls: true,
previousResponseId: "<id>",
reasoning: {
effort: "low",
summary: "auto",
},
store: false,
temperature: 3702.21,
text: {
format: {
type: "json_object",
},
},
toolChoice: {
type: "allowed_tools",
mode: "required",
tools: [
{
type: "<value>",
},
],
},
tools: [],
topP: 6303.79,
truncation: "disabled",
usage: {
inputTokens: 945279,
inputTokensDetails: {
cachedTokens: 705508,
},
outputTokens: 760458,
outputTokensDetails: {
reasoningTokens: 925967,
},
totalTokens: 422059,
},
user: "Uriel91",
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
object | "response" | ✔️ | N/A |
createdAt | number | ✔️ | N/A |
status | components.ResponseObjectStatus | ✔️ | The overall status of the response generation. 'completed' means successfully finished, 'failed' means error occurred, 'in_progress' means currently processing, 'cancelled' means user-cancelled, 'queued' means waiting to start, 'incomplete' means partial completion. |
error | components.ErrorT | ✔️ | N/A |
incompleteDetails | components.IncompleteDetails | ✔️ | N/A |
background | boolean | ✔️ | N/A |
conversation | components.Conversation | ➖ | N/A |
instructions | components.Instructions | ✔️ | N/A |
maxOutputTokens | number | ✔️ | N/A |
maxToolCalls | number | ✔️ | N/A |
metadata | Record<string, string> | ✔️ | N/A |
model | string | ✔️ | N/A |
output | components.Item[] | ✔️ | N/A |
outputText | string | ➖ | N/A |
parallelToolCalls | boolean | ✔️ | N/A |
previousResponseId | string | ✔️ | N/A |
prompt | components.PromptTemplate | ➖ | N/A |
promptCacheKey | string | ➖ | N/A |
reasoning | components.ReasoningConfiguration | ✔️ | N/A |
safetyIdentifier | string | ➖ | N/A |
serviceTier | components.ResponseObjectServiceTier | ➖ | N/A |
store | boolean | ✔️ | N/A |
temperature | number | ✔️ | N/A |
text | components.TextConfiguration | ✔️ | N/A |
toolChoice | components.ToolChoice | ✔️ | N/A |
tools | components.ResponseObjectTools[] | ✔️ | N/A |
topLogprobs | number | ➖ | N/A |
topP | number | ✔️ | N/A |
truncation | components.ResponseObjectTruncation | ✔️ | N/A |
usage | components.Usage | ✔️ | N/A |
user | string | ✔️ | N/A |