21 lines
413 B
Rust
21 lines
413 B
Rust
//! Prompt optimization algorithms
|
|
|
|
/// Optimization strategy
|
|
#[derive(Debug, Clone)]
|
|
pub struct OptimizationStrategy {
|
|
pub name: String,
|
|
pub parameters: std::collections::HashMap<String, f64>,
|
|
}
|
|
|
|
/// Prompt optimizer
|
|
#[derive(Debug)]
|
|
pub struct PromptOptimizer {
|
|
pub name: String,
|
|
}
|
|
|
|
impl PromptOptimizer {
|
|
pub fn new(name: impl Into<String>) -> Self {
|
|
Self { name: name.into() }
|
|
}
|
|
}
|