Skip to main content

wenlan_types/
system_info.rs

1// SPDX-License-Identifier: Apache-2.0
2//! System info wire type. Reported by daemon + sometimes detected client-side.
3
4use serde::{Deserialize, Serialize};
5
6/// `Deserialize` is for downstream client consumers (wenlan-mcp, plugins).
7/// The daemon currently only serializes; deserialization happens on the wire reader side.
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct SystemInfo {
10    pub total_ram_gb: f64,
11    pub available_ram_gb: f64,
12    pub has_metal: bool,
13    pub has_cuda: bool,
14    pub os: String,
15    pub arch: String,
16    pub recommended_builtin: String,
17}