pub struct ClassifierStrategyOptions {
pub routing_policy: Option<String>,
pub timeout_ms: Option<u64>,
pub max_message_chars: Option<usize>,
pub max_agent_instructions_chars: Option<usize>,
pub max_candidate_chars: Option<usize>,
}Expand description
Options of a ClassifierStrategy (ClassifierStrategyOptions).
Fields§
§routing_policy: Option<String>The routing policy, sent verbatim after the SDK’s fixed rules. Defaults to the SDK’s input-complexity policy.
timeout_ms: Option<u64>How long to wait for the decision, in milliseconds. Defaults to 30000; the call is cancelled when it runs out. Agent cancellation does not reach the decision.
max_message_chars: Option<usize>The most characters copied from the latest request. Defaults to 4000.
max_agent_instructions_chars: Option<usize>The most characters copied from the agent’s system prompt text. Defaults to 4000.
max_candidate_chars: Option<usize>The most characters the serialized candidate evidence may have; evidence is never truncated, a larger set fails the selection. Defaults to 4000.
Implementations§
Source§impl ClassifierStrategyOptions
impl ClassifierStrategyOptions
Sourcepub fn builder() -> ClassifierStrategyOptionsBuilder
pub fn builder() -> ClassifierStrategyOptionsBuilder
Create an instance of ClassifierStrategyOptions using the builder syntax
Trait Implementations§
Source§impl Clone for ClassifierStrategyOptions
impl Clone for ClassifierStrategyOptions
Source§impl Debug for ClassifierStrategyOptions
impl Debug for ClassifierStrategyOptions
Auto Trait Implementations§
impl Freeze for ClassifierStrategyOptions
impl RefUnwindSafe for ClassifierStrategyOptions
impl Send for ClassifierStrategyOptions
impl Sync for ClassifierStrategyOptions
impl Unpin for ClassifierStrategyOptions
impl UnsafeUnpin for ClassifierStrategyOptions
impl UnwindSafe for ClassifierStrategyOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.