Skip to main content

StandardWebDecisionRuntimeBuilder

Struct StandardWebDecisionRuntimeBuilder 

Source
pub struct StandardWebDecisionRuntimeBuilder { /* private fields */ }
Expand description

Builder for one target-scoped StandardWebDecisionRuntime.

Implementations§

Source§

impl StandardWebDecisionRuntimeBuilder

Source

pub fn new(target: Url) -> Self

Creates a builder with conservative deterministic defaults.

Source

pub fn enable_api_reasoning(self) -> Self

Enables passive JSON response-format and GraphQL surface reasoning.

This opt-in reuses evidence already collected by the runtime. It adds no request, executor, payload, visibility comparison, or planner action.

Source

pub fn http_policy(self, policy: HttpEvidencePolicy) -> Self

Replaces the default single-origin HTTP evidence policy.

Source

pub fn with_payload_binding(self, binding: HttpHeaderPayloadBinding) -> Self

Binds a header-valued payload strategy to the runtime’s HTTP evidence executor.

The bound executor shares the runtime’s metered request broker, so any control or candidate artifact it derives and dispatches is accounted like every other request. This is strictly opt-in: without a binding the runtime materializes and dispatches no payload artifacts.

Source

pub fn business_value(self, percent: u8) -> Self

Sets target business value as an integer percentage.

Source

pub fn planning_budget(self, budget: u64) -> Self

Sets the planner’s total action-cost budget.

Source

pub fn risk_limit(self, percent: u8) -> Self

Sets the maximum accepted action risk as an integer percentage.

Source

pub fn adaptation_limits(self, limits: AdaptationLimits) -> Self

Replaces the adaptive transition limits.

Source

pub fn experience_failure_limit(self, limit: u16) -> Self

Sets the consecutive completed-failure suppression threshold.

Source

pub fn max_action_cycles(self, cycles: u32) -> Self

Sets the maximum number of passive action executions in one session.

Source

pub fn experience_store(self, experience: ExperienceStore) -> Self

Seeds the runtime with experience retained by the host.

Source

pub fn runtime_budget(self, budget: RuntimeBudget) -> Self

Replaces the complete runtime resource envelope.

Source

pub fn cancellation_token(self, cancellation: CancellationToken) -> Self

Replaces the host-owned cancellation token for this runtime.

Cancellation is reported independently from wall-time and transport request timeouts. The host should retain a clone when it needs to stop StandardWebDecisionRuntime::analyze from another task.

Source

pub fn max_total_requests(self, limit: u32) -> Self

Sets the total bootstrap, passive, active, adaptive, and retry request limit.

Source

pub fn max_wall_time(self, limit: Duration) -> Self

Sets the monotonic deadline for the complete runtime.

Source

pub fn max_response_bytes(self, limit: u64) -> Self

Sets the cumulative transport-delivered response-body threshold.

Source

pub fn max_active_verifications(self, limit: u16) -> Self

Sets the maximum number of explicit active verification requests.

Source

pub fn max_same_action_attempts(self, limit: u16) -> Self

Sets the maximum number of attempts for one semantic action.

Source

pub fn max_consecutive_no_progress_turns(self, limit: u16) -> Self

Sets the maximum consecutive completed execution turns without progress.

Source

pub fn build( self, ) -> Result<StandardWebDecisionRuntime, StandardWebDecisionRuntimeError>

Validates policy and composes the complete standard runtime.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more