pub struct GoalConfig {
pub enabled: bool,
pub inject_into_system_prompt: bool,
pub max_text_chars: usize,
pub default_token_budget: Option<u64>,
pub max_history: usize,
}Expand description
Long-horizon goal lifecycle configuration ([goals] TOML section).
When enabled, the agent tracks a single active goal across turns, injecting an
<active_goal> block into the volatile system-prompt region and accounting for
token consumption per turn.
§Example (TOML)
[goals]
enabled = true
default_token_budget = 50000Fields§
§enabled: boolEnable the goal lifecycle subsystem. Default: false.
inject_into_system_prompt: boolInject <active_goal> block into the volatile system-prompt region. Default: true.
max_text_chars: usizeMaximum characters allowed for goal text at creation time. Default: 2000.
default_token_budget: Option<u64>Default token budget for new goals (None = unlimited). Default: None.
max_history: usizeMaximum number of goals to return in /goal list. Default: 50.
Trait Implementations§
Source§impl Clone for GoalConfig
impl Clone for GoalConfig
Source§fn clone(&self) -> GoalConfig
fn clone(&self) -> GoalConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoalConfig
impl Debug for GoalConfig
Source§impl Default for GoalConfig
impl Default for GoalConfig
Source§impl<'de> Deserialize<'de> for GoalConfigwhere
GoalConfig: Default,
impl<'de> Deserialize<'de> for GoalConfigwhere
GoalConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GoalConfig
impl RefUnwindSafe for GoalConfig
impl Send for GoalConfig
impl Sync for GoalConfig
impl Unpin for GoalConfig
impl UnsafeUnpin for GoalConfig
impl UnwindSafe for GoalConfig
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