pub struct NudgeConfig {
pub enabled: Option<bool>,
pub max: Option<usize>,
pub text: Option<String>,
}Expand description
Settings for the empty-response nudge: the [System] message injected when
a stage’s model replies with text before making any tool call.
Every field is optional. A field left unset cascades stage → agent → global
config and finally to the built-in default, so a [stages.<name>.nudge]
block only has to name what it wants to change. An empty block is inert.
Fields§
§enabled: Option<bool>Whether the nudge fires at all. When unset at every level, the default is on - except for a stage with interaction points, whose text response is its work product and which is left alone. Setting this explicitly at any level overrides that implicit rule in both directions.
max: Option<usize>How many text-only responses to nudge before accepting the text as
final. Defaults to DEFAULT_MAX_NUDGES.
text: Option<String>The nudge text. Defaults to DEFAULT_NUDGE_TEXT. Supports {stage}
(the stage’s name) and {regions} (comma-separated names of the
stage’s required context regions) placeholders.
Trait Implementations§
Source§impl Clone for NudgeConfig
impl Clone for NudgeConfig
Source§fn clone(&self) -> NudgeConfig
fn clone(&self) -> NudgeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NudgeConfig
impl Debug for NudgeConfig
Source§impl Default for NudgeConfig
impl Default for NudgeConfig
Source§fn default() -> NudgeConfig
fn default() -> NudgeConfig
Source§impl<'de> Deserialize<'de> for NudgeConfig
impl<'de> Deserialize<'de> for NudgeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for NudgeConfig
Source§impl PartialEq for NudgeConfig
impl PartialEq for NudgeConfig
Source§impl Serialize for NudgeConfig
impl Serialize for NudgeConfig
impl StructuralPartialEq for NudgeConfig
Auto Trait Implementations§
impl Freeze for NudgeConfig
impl RefUnwindSafe for NudgeConfig
impl Send for NudgeConfig
impl Sync for NudgeConfig
impl Unpin for NudgeConfig
impl UnsafeUnpin for NudgeConfig
impl UnwindSafe for NudgeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.