pub struct OptimizePromptOptions {
pub agent_id: String,
pub auto_activate: bool,
pub run_id: Option<String>,
pub project_id: Option<String>,
}Expand description
Phase 2.4: typed options for optimize_prompt — produces a challenger
prompt version that Phase 1.1’s evaluator will surface as
ready_for_promotion once it accumulates enough outcomes. The high-level
wrapper on Client hides the raw OptimizePromptRequest shape and
defaults auto_activate to false (customers activate deliberately).
Fields§
§agent_id: String§auto_activate: boolWhen true, the server activates the newly generated version immediately if its confidence exceeds the server-side threshold. Defaults to false so the champion/challenger evaluator drives activation instead.
run_id: Option<String>§project_id: Option<String>Project scope. When present, optimisation ingests cross-agent lessons from the entire project.
Implementations§
Trait Implementations§
Source§impl Clone for OptimizePromptOptions
impl Clone for OptimizePromptOptions
Source§fn clone(&self) -> OptimizePromptOptions
fn clone(&self) -> OptimizePromptOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizePromptOptions
impl Debug for OptimizePromptOptions
Source§impl Default for OptimizePromptOptions
impl Default for OptimizePromptOptions
Source§fn default() -> OptimizePromptOptions
fn default() -> OptimizePromptOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptimizePromptOptions
impl RefUnwindSafe for OptimizePromptOptions
impl Send for OptimizePromptOptions
impl Sync for OptimizePromptOptions
impl Unpin for OptimizePromptOptions
impl UnsafeUnpin for OptimizePromptOptions
impl UnwindSafe for OptimizePromptOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request