pub struct ContextPolicyV1 {Show 15 fields
pub max_context_tokens: Option<u64>,
pub injection_filter: Option<PolicyActionV1>,
pub read_mode: Option<String>,
pub ranking_profile: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub denied_tools: Option<Vec<String>>,
pub allowed_sources: Option<Vec<String>>,
pub max_writes_per_min: Option<u64>,
pub max_cost_cents_per_person_per_day: Option<u64>,
pub max_cost_cents_per_project_per_month: Option<u64>,
pub max_requests_per_minute_per_person: Option<u64>,
pub auto_extraction: Option<bool>,
pub extraction_requires_source_anchor: Option<bool>,
pub max_source_age_days: Option<u64>,
pub other: BTreeMap<String, Value>,
}Expand description
context of an effective policy.
Fields§
§max_context_tokens: Option<u64>§injection_filter: Option<PolicyActionV1>§read_mode: Option<String>§ranking_profile: Option<String>§allowed_tools: Option<Vec<String>>§denied_tools: Option<Vec<String>>§allowed_sources: Option<Vec<String>>§max_writes_per_min: Option<u64>§max_cost_cents_per_person_per_day: Option<u64>§max_cost_cents_per_project_per_month: Option<u64>§max_requests_per_minute_per_person: Option<u64>§auto_extraction: Option<bool>§extraction_requires_source_anchor: Option<bool>§max_source_age_days: Option<u64>§other: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for ContextPolicyV1
impl Clone for ContextPolicyV1
Source§impl Debug for ContextPolicyV1
impl Debug for ContextPolicyV1
Source§impl Default for ContextPolicyV1
impl Default for ContextPolicyV1
Source§impl<'de> Deserialize<'de> for ContextPolicyV1
impl<'de> Deserialize<'de> for ContextPolicyV1
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 PartialEq for ContextPolicyV1
impl PartialEq for ContextPolicyV1
Source§impl Serialize for ContextPolicyV1
impl Serialize for ContextPolicyV1
impl StructuralPartialEq for ContextPolicyV1
Auto Trait Implementations§
impl Forget for ContextPolicyV1
impl Freeze for ContextPolicyV1
impl Move for ContextPolicyV1
impl RefUnwindSafe for ContextPolicyV1
impl Send for ContextPolicyV1
impl Sync for ContextPolicyV1
impl Unpin for ContextPolicyV1
impl UnsafeUnpin for ContextPolicyV1
impl UnwindSafe for ContextPolicyV1
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