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 storage_topology: String,
19 pub http_bind: String,
20 pub http_request_timeout_ms: u64,
21 pub http_graceful_shutdown_timeout_ms: u64,
22 pub http_max_request_body_bytes: u64,
23 pub http_proxy_configured: bool,
24 pub http_no_proxy_rules: usize,
25 pub http_ssl_verify: bool,
26 pub qos_max_connections: usize,
27 pub qos_max_in_flight_requests: usize,
28 pub qos_max_queue_depth: usize,
29 pub worker_embedding_endpoint_configured: bool,
30 pub worker_ocr_endpoint_configured: bool,
31 pub worker_vision_endpoint_configured: bool,
32 pub worker_extractor_endpoint_configured: bool,
33 pub worker_max_in_flight: usize,
34 pub code_index_max_in_flight: usize,
35 pub silent_updates_enabled: bool,
36 pub file_index_enabled: bool,
37 pub file_index_root_count: usize,
38 pub file_index_max_depth: usize,
39 pub file_index_max_file_bytes: u64,
40 pub file_index_scan_interval_ms: u64,
41 pub file_index_scan_timeout_ms: u64,
42 pub file_index_max_files_per_root: usize,
43 pub file_query_timeout_ms: u64,
44 pub semantic_backend_mode: String,
45 pub vector_backend_mode: String,
46 pub rerank_backend_mode: String,
47 pub rerank_model: Option<String>,
48 pub rerank_candidate_multiplier: usize,
49 pub rerank_max_candidates: usize,
50 pub rerank_timeout_ms: u64,
51 pub embedding_provider: Option<String>,
52 pub embedding_base_url: Option<String>,
53 pub embedding_api_key_configured: bool,
54 pub text_embedding_model: String,
55 pub image_embedding_model: String,
56 pub embedding_dimension: u32,
57 pub embedding_batch_size: Option<usize>,
58 pub embedding_timeout_ms: Option<u64>,
59 pub embedding_max_concurrency: Option<usize>,
60 pub model_profiles: ModelProfileRuntimeSummary,
61 pub telemetry: TelemetryStatus,
62}
63
64#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
66pub struct ProjectStatusResponse {
67 pub project_name: String,
68 pub metadata: ApiMetadata,
69 pub runtime: RuntimeStatus,
70}