pub struct MultistepPolicy {
pub multistep_max_content_chars: Option<u32>,
}Expand description
#880 — Form 3 multistep-ingest prompt sizing sub-struct of
GovernancePolicy.
Fields§
§multistep_max_content_chars: Option<u32>v0.7.0 Cluster v0.7-polish (issue #782, PERF-11) — per-namespace
cap on the number of characters of content inlined into a Form
3 multistep-ingest LLM-stage prompt. Form 3’s deterministic
helper stages already receive the content by borrow, so the
cap only affects LLM stages where the content is actually
templated into the prompt body.
Default None resolves to 1500 characters (~400 tokens at
the cl100k average) — the same cap Cluster B settled on for the
synthesis prompt cap (PERF-7). The two caps are independent
knobs so operators can tune the synthesis and multistep paths
separately, but the shared default keeps reasoning about prompt
budgets straightforward.
The truncation only affects what the LLM sees; the helper payloads, helper-stage inputs, and the caller-visible final output are untouched.
Trait Implementations§
Source§impl Clone for MultistepPolicy
impl Clone for MultistepPolicy
Source§fn clone(&self) -> MultistepPolicy
fn clone(&self) -> MultistepPolicy
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 MultistepPolicy
impl Debug for MultistepPolicy
Source§impl Default for MultistepPolicy
impl Default for MultistepPolicy
Source§fn default() -> MultistepPolicy
fn default() -> MultistepPolicy
Source§impl<'de> Deserialize<'de> for MultistepPolicy
impl<'de> Deserialize<'de> for MultistepPolicy
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 MultistepPolicy
Source§impl PartialEq for MultistepPolicy
impl PartialEq for MultistepPolicy
Source§fn eq(&self, other: &MultistepPolicy) -> bool
fn eq(&self, other: &MultistepPolicy) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MultistepPolicy
impl Serialize for MultistepPolicy
impl StructuralPartialEq for MultistepPolicy
Auto Trait Implementations§
impl Freeze for MultistepPolicy
impl RefUnwindSafe for MultistepPolicy
impl Send for MultistepPolicy
impl Sync for MultistepPolicy
impl Unpin for MultistepPolicy
impl UnsafeUnpin for MultistepPolicy
impl UnwindSafe for MultistepPolicy
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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