feat: add a few metrics (#8910)

This commit is contained in:
jif-oai
2026-01-08 15:39:57 +00:00
committed by GitHub
parent 98e171258c
commit 5522663f92
5 changed files with 59 additions and 25 deletions

View File

@@ -332,7 +332,7 @@ fn is_session_prefix(text: &str) -> bool {
lowered.starts_with("<environment_context>")
}
fn is_user_turn_boundary(item: &ResponseItem) -> bool {
pub(crate) fn is_user_turn_boundary(item: &ResponseItem) -> bool {
let ResponseItem::Message { role, content, .. } = item else {
return false;
};

View File

@@ -2,3 +2,4 @@ mod history;
mod normalize;
pub(crate) use history::ContextManager;
pub(crate) use history::is_user_turn_boundary;