|
5 | 5 |
|
6 | 6 | use pyo3::prelude::*; |
7 | 7 |
|
8 | | -use ::vectorless::{LlmMetricsReport, MetricsReport, PilotMetricsReport, RetrievalMetricsReport}; |
| 8 | +use ::vectorless::{LlmMetricsReport, MetricsReport, RetrievalMetricsReport}; |
9 | 9 |
|
10 | 10 | /// LLM usage metrics report. |
11 | 11 | #[pyclass(name = "LlmMetricsReport")] |
@@ -101,106 +101,6 @@ impl PyLlmMetricsReport { |
101 | 101 | } |
102 | 102 | } |
103 | 103 |
|
104 | | -/// Pilot decision metrics report. |
105 | | -#[pyclass(name = "PilotMetricsReport")] |
106 | | -pub struct PyPilotMetricsReport { |
107 | | - pub(crate) inner: PilotMetricsReport, |
108 | | -} |
109 | | - |
110 | | -#[pymethods] |
111 | | -impl PyPilotMetricsReport { |
112 | | - /// Total number of Pilot decisions. |
113 | | - #[getter] |
114 | | - fn total_decisions(&self) -> u64 { |
115 | | - self.inner.total_decisions |
116 | | - } |
117 | | - |
118 | | - /// Number of start guidance calls. |
119 | | - #[getter] |
120 | | - fn start_guidance_calls(&self) -> u64 { |
121 | | - self.inner.start_guidance_calls |
122 | | - } |
123 | | - |
124 | | - /// Number of fork decisions. |
125 | | - #[getter] |
126 | | - fn fork_decisions(&self) -> u64 { |
127 | | - self.inner.fork_decisions |
128 | | - } |
129 | | - |
130 | | - /// Number of backtrack calls. |
131 | | - #[getter] |
132 | | - fn backtrack_calls(&self) -> u64 { |
133 | | - self.inner.backtrack_calls |
134 | | - } |
135 | | - |
136 | | - /// Number of evaluate calls. |
137 | | - #[getter] |
138 | | - fn evaluate_calls(&self) -> u64 { |
139 | | - self.inner.evaluate_calls |
140 | | - } |
141 | | - |
142 | | - /// Decision accuracy based on feedback (0.0 - 1.0). |
143 | | - #[getter] |
144 | | - fn accuracy(&self) -> f64 { |
145 | | - self.inner.accuracy |
146 | | - } |
147 | | - |
148 | | - /// Number of correct decisions. |
149 | | - #[getter] |
150 | | - fn correct_decisions(&self) -> u64 { |
151 | | - self.inner.correct_decisions |
152 | | - } |
153 | | - |
154 | | - /// Number of incorrect decisions. |
155 | | - #[getter] |
156 | | - fn incorrect_decisions(&self) -> u64 { |
157 | | - self.inner.incorrect_decisions |
158 | | - } |
159 | | - |
160 | | - /// Average confidence across all decisions. |
161 | | - #[getter] |
162 | | - fn avg_confidence(&self) -> f64 { |
163 | | - self.inner.avg_confidence |
164 | | - } |
165 | | - |
166 | | - /// Number of LLM calls made by Pilot. |
167 | | - #[getter] |
168 | | - fn llm_calls(&self) -> u64 { |
169 | | - self.inner.llm_calls |
170 | | - } |
171 | | - |
172 | | - /// Number of interventions. |
173 | | - #[getter] |
174 | | - fn interventions(&self) -> u64 { |
175 | | - self.inner.interventions |
176 | | - } |
177 | | - |
178 | | - /// Number of skipped interventions. |
179 | | - #[getter] |
180 | | - fn skipped_interventions(&self) -> u64 { |
181 | | - self.inner.skipped_interventions |
182 | | - } |
183 | | - |
184 | | - /// Number of budget exhausted events. |
185 | | - #[getter] |
186 | | - fn budget_exhausted(&self) -> u64 { |
187 | | - self.inner.budget_exhausted |
188 | | - } |
189 | | - |
190 | | - /// Number of algorithm fallbacks. |
191 | | - #[getter] |
192 | | - fn algorithm_fallbacks(&self) -> u64 { |
193 | | - self.inner.algorithm_fallbacks |
194 | | - } |
195 | | - |
196 | | - fn __repr__(&self) -> String { |
197 | | - format!( |
198 | | - "PilotMetricsReport(decisions={}, accuracy={:.2}, avg_confidence={:.2})", |
199 | | - self.inner.total_decisions, self.inner.accuracy, self.inner.avg_confidence, |
200 | | - ) |
201 | | - } |
202 | | -} |
203 | | - |
204 | 104 | /// Retrieval operation metrics report. |
205 | 105 | #[pyclass(name = "RetrievalMetricsReport")] |
206 | 106 | pub struct PyRetrievalMetricsReport { |
@@ -337,14 +237,6 @@ impl PyMetricsReport { |
337 | 237 | } |
338 | 238 | } |
339 | 239 |
|
340 | | - /// Pilot metrics. |
341 | | - #[getter] |
342 | | - fn pilot(&self) -> PyPilotMetricsReport { |
343 | | - PyPilotMetricsReport { |
344 | | - inner: self.inner.pilot.clone(), |
345 | | - } |
346 | | - } |
347 | | - |
348 | 240 | /// Retrieval metrics. |
349 | 241 | #[getter] |
350 | 242 | fn retrieval(&self) -> PyRetrievalMetricsReport { |
|
0 commit comments