Skip to main content

roark_rs/models/
score_classification.rs

1/*
2 * Roark Analytics API
3 *
4 * # Roark Analytics API - Voice AI Analytics Platform  The Roark Analytics API provides comprehensive monitoring, evaluation, and analytics capabilities for voice AI agents. This API allows developers to seamlessly integrate with the Roark platform to track call quality, analyze agent performance, and extract insights from voice interactions.  ## Key Features  - **Real-time Call Analysis**: Upload and analyze voice call recordings with AI-powered insights - **Sentiment Analysis**: Extract emotional tone, key phrases, and sentiment scores across 64+ emotions - **Agent Performance Evaluation**: Create custom evaluation jobs with configurable metrics and scoring - **Platform Integrations**: Native support for VAPI and Retell AI with webhook-based data ingestion - **Custom Analytics**: Build custom analytics pipelines with flexible data models and properties  ## Authentication  All API endpoints require Bearer token authentication. Include your API token in the Authorization header:  ``` Authorization: Bearer YOUR_API_TOKEN ```  ## Rate Limiting  The API implements rate limiting to ensure service stability. Rate limit headers are included in responses.  ## Error Handling  The API uses standard HTTP status codes and returns structured error responses with detailed error information including error types, codes, and human-readable messages.  ## Rust Code Generation  This OpenAPI specification has been optimized for Rust code generation with: - Snake_case field naming conventions - Proper nullable field handling with Option<T> - Comprehensive documentation for generated code - Type-safe enum definitions - Structured error handling
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: support@roark.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ScoreClassification : Classification of the evaluation score: - success: Evaluation indicates successful performance - failure: Evaluation indicates poor or failed performance   - irrelevant: Evaluation not applicable to this call
15/// Classification of the evaluation score: - success: Evaluation indicates successful performance - failure: Evaluation indicates poor or failed performance   - irrelevant: Evaluation not applicable to this call
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ScoreClassification {
18    #[serde(rename = "success")]
19    Success,
20    #[serde(rename = "failure")]
21    Failure,
22    #[serde(rename = "irrelevant")]
23    Irrelevant,
24
25}
26
27impl std::fmt::Display for ScoreClassification {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Success => write!(f, "success"),
31            Self::Failure => write!(f, "failure"),
32            Self::Irrelevant => write!(f, "irrelevant"),
33        }
34    }
35}
36
37impl Default for ScoreClassification {
38    fn default() -> ScoreClassification {
39        Self::Success
40    }
41}
42