pub struct PipelineSettings {
pub max_history_messages: usize,
pub iteration_budget_enabled: bool,
pub max_iterations: usize,
pub tracked_task_max_iterations: usize,
pub auto_compact_threshold_percent: u8,
pub compaction_strategy: CompactionStrategy,
pub max_context_tokens: usize,
pub log_token_usage: bool,
pub agent_telemetry: AgentTelemetrySettings,
pub project_guardrails: ProjectGuardrailsSettings,
pub reflection: ReflectionSettings,
}Expand description
Pipeline and context management settings.
These settings control how the agent pipeline manages conversation context, token limits, and auto-compaction behavior.
Fields§
§max_history_messages: usizeMaximum number of history messages to include in prompt.
iteration_budget_enabled: boolWhether to enforce an iteration budget for agent loops.
When disabled, agent requests run until they reach a natural stopping point or are cancelled by the operator.
max_iterations: usizeMaximum agent-loop iterations for general requests when budgeting is enabled.
tracked_task_max_iterations: usizeMaximum agent-loop iterations for tracked-task / implementation requests when budgeting is enabled.
auto_compact_threshold_percent: u8Auto-compaction threshold as percentage (0-100).
compaction_strategy: CompactionStrategyStrategy to use when auto-compaction is triggered.
max_context_tokens: usizeMaximum context window tokens (model-dependent). 0 = use provider defaults.
log_token_usage: boolEnable token usage logging for debugging.
agent_telemetry: AgentTelemetrySettingsAgent-loop telemetry settings.
project_guardrails: ProjectGuardrailsSettingsProject guardrails settings.
reflection: ReflectionSettingsERL-inspired experiential reflection settings.
Implementations§
Source§impl PipelineSettings
impl PipelineSettings
Sourcepub fn auto_compact_threshold(&self) -> f64
pub fn auto_compact_threshold(&self) -> f64
Get auto-compaction threshold as a float (0.0-1.0).
Trait Implementations§
Source§impl Clone for PipelineSettings
impl Clone for PipelineSettings
Source§fn clone(&self) -> PipelineSettings
fn clone(&self) -> PipelineSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PipelineSettings
impl Debug for PipelineSettings
Source§impl Default for PipelineSettings
impl Default for PipelineSettings
Source§fn default() -> PipelineSettings
fn default() -> PipelineSettings
Source§impl<'de> Deserialize<'de> for PipelineSettingswhere
PipelineSettings: Default,
impl<'de> Deserialize<'de> for PipelineSettingswhere
PipelineSettings: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PipelineSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PipelineSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PipelineSettings
impl PartialEq for PipelineSettings
Source§impl Serialize for PipelineSettings
impl Serialize for PipelineSettings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PipelineSettings
impl StructuralPartialEq for PipelineSettings
Auto Trait Implementations§
impl Freeze for PipelineSettings
impl RefUnwindSafe for PipelineSettings
impl Send for PipelineSettings
impl Sync for PipelineSettings
impl Unpin for PipelineSettings
impl UnwindSafe for PipelineSettings
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().