relay_knowledge/api/
status.rs1use serde::{Deserialize, Serialize};
2
3use super::ApiMetadata;
4use crate::model_provider::ModelProfileRuntimeSummary;
5use crate::observability::TelemetryStatus;
6
7#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
9pub struct RuntimeStatus {
10 pub config_dir: String,
11 pub data_dir: String,
12 pub state_dir: String,
13 pub cache_dir: String,
14 pub log_dir: String,
15 pub temp_dir: String,
16 pub runtime_dir: String,
17 pub service_dir: String,
18 pub http_bind: String,
19 pub http_request_timeout_ms: u64,
20 pub http_graceful_shutdown_timeout_ms: u64,
21 pub http_max_request_body_bytes: u64,
22 pub http_proxy_configured: bool,
23 pub http_no_proxy_rules: usize,
24 pub http_ssl_verify: bool,
25 pub qos_max_connections: usize,
26 pub qos_max_in_flight_requests: usize,
27 pub qos_max_queue_depth: usize,
28 pub worker_embedding_endpoint_configured: bool,
29 pub worker_ocr_endpoint_configured: bool,
30 pub worker_vision_endpoint_configured: bool,
31 pub worker_extractor_endpoint_configured: bool,
32 pub worker_max_in_flight: usize,
33 pub silent_updates_enabled: bool,
34 pub file_index_enabled: bool,
35 pub file_index_root_count: usize,
36 pub file_index_max_depth: usize,
37 pub file_index_max_file_bytes: u64,
38 pub file_index_scan_interval_ms: u64,
39 pub file_index_scan_timeout_ms: u64,
40 pub file_index_max_files_per_root: usize,
41 pub file_query_timeout_ms: u64,
42 pub semantic_backend_mode: String,
43 pub vector_backend_mode: String,
44 pub rerank_backend_mode: String,
45 pub rerank_model: Option<String>,
46 pub rerank_candidate_multiplier: usize,
47 pub rerank_max_candidates: usize,
48 pub rerank_timeout_ms: u64,
49 pub embedding_provider: Option<String>,
50 pub embedding_base_url: Option<String>,
51 pub embedding_api_key_configured: bool,
52 pub text_embedding_model: String,
53 pub image_embedding_model: String,
54 pub embedding_dimension: u32,
55 pub embedding_batch_size: Option<usize>,
56 pub embedding_timeout_ms: Option<u64>,
57 pub embedding_max_concurrency: Option<usize>,
58 pub model_profiles: ModelProfileRuntimeSummary,
59 pub telemetry: TelemetryStatus,
60}
61
62#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
64pub struct ProjectStatusResponse {
65 pub project_name: String,
66 pub metadata: ApiMetadata,
67 pub runtime: RuntimeStatus,
68}