vtcode-core 0.136.1

Core library for VT Code - a Rust-based terminal coding agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::AgentRunner;
use crate::utils::colors::style;

impl AgentRunner {
    #[cold]
    pub(super) fn warn_on_empty_response(&self, agent_prefix: &str, response_content: &str, has_tool_calls: bool) {
        if response_content.trim().is_empty() && !has_tool_calls {
            self.runner_println(format_args!(
                "{} {} received empty response with no tool calls",
                agent_prefix,
                style("(WARN)").red().bold()
            ));
        }
    }
}