use serde::{Deserialize, Serialize};
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct AgentPromptSuggestionsConfig {
#[serde(default = "default_prompt_suggestions_enabled")]
pub enabled: bool,
#[serde(default)]
pub model: String,
#[serde(default = "default_prompt_suggestions_temperature")]
pub temperature: f32,
#[serde(default = "default_prompt_suggestions_show_cost_notice")]
pub show_cost_notice: bool,
}
impl Default for AgentPromptSuggestionsConfig {
fn default() -> Self {
Self {
enabled: default_prompt_suggestions_enabled(),
model: String::new(),
temperature: default_prompt_suggestions_temperature(),
show_cost_notice: default_prompt_suggestions_show_cost_notice(),
}
}
}
#[inline]
const fn default_prompt_suggestions_enabled() -> bool {
true
}
#[inline]
const fn default_prompt_suggestions_temperature() -> f32 {
0.3
}
#[inline]
const fn default_prompt_suggestions_show_cost_notice() -> bool {
true
}