import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; export declare class Feedback extends ClientSDK { /** * Submit feedback for chat completion * * @remarks * Submit user feedback for a specific chat completion to track satisfaction and model performance. Each completion can only receive feedback once. */ createCompletionFeedback(request: operations.CreateCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * List chat completion feedback * * @remarks * Retrieves a paginated list of feedback entries recorded on the caller's chat completions, ordered by the completion's creation date. Supports filtering by rating. An `after` cursor that no longer resolves to a completion visible to the caller returns 400; restart pagination from the first page. */ listCompletionFeedback(request: operations.ListCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * Retrieve feedback by completion ID * * @remarks * Retrieves the existing feedback rating and description for a specific chat completion. */ getCompletionFeedback(request: operations.GetCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * Update existing completion feedback * * @remarks * Updates or modifies existing feedback for a specific chat completion. Useful for allowing users to revise their initial submissions. */ updateCompletionFeedback(request: operations.UpdateCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * Batch retrieve feedback for multiple completions * * @remarks * Retrieves feedback for multiple chat completions in a single batch request. */ batchGetCompletionFeedback(request: operations.BatchGetCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * Submit feedback for response * * @remarks * Submit user feedback for a specific agent response to track satisfaction and model performance. Each response can only receive feedback once. */ createResponseFeedback(request: operations.CreateResponseFeedbackRequest, options?: RequestOptions): Promise; /** * List response feedback * * @remarks * Retrieves a paginated list of feedback entries recorded on the caller's agent responses, ordered by the response's creation date. Supports filtering by rating. An `after` cursor that no longer resolves to a response visible to the caller — including responses that have since been deleted — returns 400; restart pagination from the first page. */ listResponseFeedback(request: operations.ListResponseFeedbackRequest, options?: RequestOptions): Promise; /** * Retrieve feedback by response ID * * @remarks * Retrieves the existing feedback rating and description for a specific agent response. */ getResponseFeedback(request: operations.GetResponseFeedbackRequest, options?: RequestOptions): Promise; /** * Update existing response feedback * * @remarks * Updates or modifies existing feedback for a specific agent response. Useful for allowing users to revise their initial submissions. */ updateResponseFeedback(request: operations.UpdateResponseFeedbackRequest, options?: RequestOptions): Promise; /** * Batch retrieve feedback for multiple responses * * @remarks * Retrieves feedback for multiple agent responses in a single batch request. */ batchGetResponseFeedback(request: operations.BatchGetResponseFeedbackRequest, options?: RequestOptions): Promise; /** * Export completion feedback as CSV * * @remarks * Synchronously exports the completion feedback entries visible to the caller as a CSV file, ordered by the creation date of the underlying request. Visibility matches the list endpoint: callers see their own feedback; org owners and admins see their whole team. Supports filtering by rating. The export is capped at 50,000 rows; when the cap is hit the response carries an X-Export-Truncated header and older rows (with the default descending order) are omitted. */ exportCompletionFeedback(request: operations.ExportCompletionFeedbackRequest, options?: RequestOptions): Promise; /** * Export response feedback as CSV * * @remarks * Synchronously exports the response feedback entries visible to the caller as a CSV file, ordered by the creation date of the underlying request. Visibility matches the list endpoint: callers see their own feedback; org owners and admins see their whole team. Supports filtering by rating. The export is capped at 50,000 rows; when the cap is hit the response carries an X-Export-Truncated header and older rows (with the default descending order) are omitted. */ exportResponseFeedback(request: operations.ExportResponseFeedbackRequest, options?: RequestOptions): Promise; /** * Start feedback export * * @remarks * Starts a background job to export all feedback data across every tenant to parquet files in S3/R2. Only one export can run simultaneously. Restricted to cluster administrators. */ startExport(options?: RequestOptions): Promise; /** * Get feedback export status * * @remarks * Checks the status and progress of the currently running or most recently completed feedback export job. Restricted to cluster administrators. */ getExportStatus(options?: RequestOptions): Promise; } //# sourceMappingURL=feedback.d.ts.map