[Rust Frontend] Populate cached_token_count in responses (#44887)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-06-10 20:50:05 -07:00
committed by GitHub
parent 85a0ffae42
commit 5d5591d99b
34 changed files with 556 additions and 262 deletions
+2 -1
View File
@@ -582,7 +582,8 @@ impl EngineCoreClient {
let results: Vec<T> = self.call_utility(method, args).await?;
if results.iter().all_equal() {
// `engine_count >= 1` is enforced during startup handshake so `results` must be non-empty.
// `engine_count >= 1` is enforced during startup handshake so `results` must be
// non-empty.
Ok(results.into_iter().next().unwrap())
} else {
Err(Error::InconsistentUtilityResults {
@@ -1,5 +1,6 @@
use std::any::type_name;
use std::{fmt, str::FromStr};
use std::fmt;
use std::str::FromStr;
use rmpv::Value;
use serde::{Deserialize, Serialize};