box-node-sdk
Version:
Official SDK for Box Platform APIs
28 lines • 1.33 kB
TypeScript
import { AiExtractResponse } from './aiExtractResponse.js';
import { AiAgentInfo } from './aiAgentInfo.js';
import { DateTime } from '../internal/utils.js';
import { SerializedData } from '../serialization/json.js';
export interface AiExtractStructuredResponse {
readonly answer: AiExtractResponse;
/**
* The ISO date formatted timestamp of when the answer to the prompt was created. */
readonly createdAt: DateTime;
/**
* The reason the response finishes. */
readonly completionReason?: string;
/**
* The confidence score levels and numeric values for each extracted field as a JSON dictionary. This can be empty if no field could be extracted. */
readonly confidenceScore?: {
readonly [key: string]: any;
};
/**
* The reference for each extracted field as a JSON dictionary. This can be empty if no field could be extracted. */
readonly reference?: {
readonly [key: string]: any;
};
readonly aiAgentInfo?: AiAgentInfo;
readonly rawData?: SerializedData;
}
export declare function serializeAiExtractStructuredResponse(val: AiExtractStructuredResponse): SerializedData;
export declare function deserializeAiExtractStructuredResponse(val: SerializedData): AiExtractStructuredResponse;
//# sourceMappingURL=aiExtractStructuredResponse.d.ts.map