Skip to main content

Module utils

Module utils 

Source
Expand description

Utility helpers: model name parsing, platform variant detection, text and timestamp helpers.

Re-exports§

pub use model_name::extract_model_name;
pub use model_name::is_gemini_model;
pub use model_name::is_gemini1_model;
pub use model_name::is_gemini2_or_above;
pub use variant::GoogleLlmVariant;
pub use variant::get_google_llm_variant;

Modules§

model_name
Model name parsing helpers.
text
Text helpers: code-fence stripping, truncation, {key} templating, edit distance. Small text helpers shared across the workspace: code-fence stripping, character-safe truncation, {key} templating and edit distance.
time
RFC 3339 timestamps without a date-time dependency. Wall-clock timestamps without a date-time dependency.
variant
Platform variant detection (Gemini API vs Vertex AI).