pub struct ContextPipelineConfig {
pub max_history_messages: Option<usize>,
pub max_history_tokens: Option<usize>,
pub enable_compaction_filter: Option<bool>,
}Expand description
JSON configuration for ContextPipelineComponent.
Fields§
§max_history_messages: Option<usize>Maximum number of history messages (default: 50).
max_history_tokens: Option<usize>Maximum token budget for history (default: 64000).
enable_compaction_filter: Option<bool>Enable compaction filter (default: true).
Trait Implementations§
Source§impl Clone for ContextPipelineConfig
impl Clone for ContextPipelineConfig
Source§fn clone(&self) -> ContextPipelineConfig
fn clone(&self) -> ContextPipelineConfig
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 ContextPipelineConfig
impl Debug for ContextPipelineConfig
Source§impl<'de> Deserialize<'de> for ContextPipelineConfig
impl<'de> Deserialize<'de> for ContextPipelineConfig
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
Source§impl JsonSchema for ContextPipelineConfig
impl JsonSchema for ContextPipelineConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ContextPipelineConfig
impl RefUnwindSafe for ContextPipelineConfig
impl Send for ContextPipelineConfig
impl Sync for ContextPipelineConfig
impl Unpin for ContextPipelineConfig
impl UnsafeUnpin for ContextPipelineConfig
impl UnwindSafe for ContextPipelineConfig
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