import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.feedback.getExportStatus({});
console.log(result);
}
run();{
"status": "COMPLETED",
"startTime": "2024-01-15T10:30:00Z",
"closeTime": "2024-01-15T10:31:30Z",
"progress": {
"stage": "completed",
"recordCount": 120,
"completionCount": 70,
"responseCount": 50,
"parquetBytes": 24576,
"message": "Export completed successfully"
},
"result": {
"outputPath": "s3://exports/feedback/2024-01-15",
"completionsFile": "s3://exports/feedback/2024-01-15/completions.parquet",
"responsesFile": "s3://exports/feedback/2024-01-15/responses.parquet",
"recordCount": 120,
"completionFeedbackCount": 70,
"responseFeedbackCount": 50,
"exportedAt": 1705314690000,
"durationMs": 90000
}
}Checks the status and progress of the currently running or most recently completed feedback export job.
import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.feedback.getExportStatus({});
console.log(result);
}
run();{
"status": "COMPLETED",
"startTime": "2024-01-15T10:30:00Z",
"closeTime": "2024-01-15T10:31:30Z",
"progress": {
"stage": "completed",
"recordCount": 120,
"completionCount": 70,
"responseCount": 50,
"parquetBytes": 24576,
"message": "Export completed successfully"
},
"result": {
"outputPath": "s3://exports/feedback/2024-01-15",
"completionsFile": "s3://exports/feedback/2024-01-15/completions.parquet",
"responsesFile": "s3://exports/feedback/2024-01-15/responses.parquet",
"recordCount": 120,
"completionFeedbackCount": 70,
"responseFeedbackCount": 50,
"exportedAt": 1705314690000,
"durationMs": 90000
}
}Authenticate with your MKA1 API key at the API gateway: Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, also send X-On-Behalf-Of to identify the end user making the request.
Optional external user identifier for multi-user server-side integrations. Use this when acting on behalf of one of your end users.
OK
Response containing the status and progress of the feedback export job.
Current status of the export job
NOT_FOUND, RUNNING, COMPLETED, FAILED, CANCELLED, TERMINATED, CONTINUED_AS_NEW, TIMED_OUT When the export job started
When the export job completed (if finished)
Progress information (available when running)
Show child attributes
Export result (only present when status is COMPLETED)
Show child attributes
Error message (only present when status is FAILED)
Was this page helpful?