pub struct StandardWebDecisionRuntimeBuilder { /* private fields */ }Expand description
Builder for one target-scoped StandardWebDecisionRuntime.
Implementations§
Source§impl StandardWebDecisionRuntimeBuilder
impl StandardWebDecisionRuntimeBuilder
Sourcepub fn enable_api_reasoning(self) -> Self
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.
Sourcepub fn http_policy(self, policy: HttpEvidencePolicy) -> Self
pub fn http_policy(self, policy: HttpEvidencePolicy) -> Self
Replaces the default single-origin HTTP evidence policy.
Sourcepub fn with_payload_binding(self, binding: HttpHeaderPayloadBinding) -> Self
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.
Sourcepub fn business_value(self, percent: u8) -> Self
pub fn business_value(self, percent: u8) -> Self
Sets target business value as an integer percentage.
Sourcepub fn planning_budget(self, budget: u64) -> Self
pub fn planning_budget(self, budget: u64) -> Self
Sets the planner’s total action-cost budget.
Sourcepub fn risk_limit(self, percent: u8) -> Self
pub fn risk_limit(self, percent: u8) -> Self
Sets the maximum accepted action risk as an integer percentage.
Sourcepub fn adaptation_limits(self, limits: AdaptationLimits) -> Self
pub fn adaptation_limits(self, limits: AdaptationLimits) -> Self
Replaces the adaptive transition limits.
Sourcepub fn experience_failure_limit(self, limit: u16) -> Self
pub fn experience_failure_limit(self, limit: u16) -> Self
Sets the consecutive completed-failure suppression threshold.
Sourcepub fn max_action_cycles(self, cycles: u32) -> Self
pub fn max_action_cycles(self, cycles: u32) -> Self
Sets the maximum number of passive action executions in one session.
Sourcepub fn experience_store(self, experience: ExperienceStore) -> Self
pub fn experience_store(self, experience: ExperienceStore) -> Self
Seeds the runtime with experience retained by the host.
Sourcepub fn runtime_budget(self, budget: RuntimeBudget) -> Self
pub fn runtime_budget(self, budget: RuntimeBudget) -> Self
Replaces the complete runtime resource envelope.
Sourcepub fn cancellation_token(self, cancellation: CancellationToken) -> Self
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.
Sourcepub fn max_total_requests(self, limit: u32) -> Self
pub fn max_total_requests(self, limit: u32) -> Self
Sets the total bootstrap, passive, active, adaptive, and retry request limit.
Sourcepub fn max_wall_time(self, limit: Duration) -> Self
pub fn max_wall_time(self, limit: Duration) -> Self
Sets the monotonic deadline for the complete runtime.
Sourcepub fn max_response_bytes(self, limit: u64) -> Self
pub fn max_response_bytes(self, limit: u64) -> Self
Sets the cumulative transport-delivered response-body threshold.
Sourcepub fn max_active_verifications(self, limit: u16) -> Self
pub fn max_active_verifications(self, limit: u16) -> Self
Sets the maximum number of explicit active verification requests.
Sourcepub fn max_same_action_attempts(self, limit: u16) -> Self
pub fn max_same_action_attempts(self, limit: u16) -> Self
Sets the maximum number of attempts for one semantic action.
Sourcepub fn max_consecutive_no_progress_turns(self, limit: u16) -> Self
pub fn max_consecutive_no_progress_turns(self, limit: u16) -> Self
Sets the maximum consecutive completed execution turns without progress.
Sourcepub fn build(
self,
) -> Result<StandardWebDecisionRuntime, StandardWebDecisionRuntimeError>
pub fn build( self, ) -> Result<StandardWebDecisionRuntime, StandardWebDecisionRuntimeError>
Validates policy and composes the complete standard runtime.