vtcode_core/prompts/system/
tokens.rs1use crate::llm::providers::gemini::wire::Content;
4use crate::prompts::static_prompts::{
5 lightweight_instruction_text, minimal_instruction_text, specialized_instruction_text,
6};
7use vtcode_commons::estimate_tokens;
8
9pub fn generate_minimal_instruction() -> Content {
11 Content::system_text(minimal_instruction_text())
12}
13
14pub fn generate_lightweight_instruction() -> Content {
16 Content::system_text(lightweight_instruction_text())
17}
18
19pub fn generate_specialized_instruction() -> Content {
21 Content::system_text(specialized_instruction_text())
22}
23
24#[must_use]
31pub fn estimate_token_count(text: &str) -> u64 {
32 estimate_tokens(text) as u64
33}