Class AbstractValidationGuardrail<T>
java.lang.Object
ai.redouble.nucleo.harness.AbstractJob<Void>
ai.redouble.nucleo.guardrails.AbstractGuardrail<T>
ai.redouble.nucleo.guardrails.AbstractValidationGuardrail<T>
- Type Parameters:
T- the answer type this guardrail validates
- All Implemented Interfaces:
Guardrail<T>, ValidationGuardrail<T>, Identifiable, Job<Void>
public abstract class AbstractValidationGuardrail<T>
extends AbstractGuardrail<T>
implements ValidationGuardrail<T>
Base class for validation guardrails. Subclasses implement
AbstractGuardrail.validate(T) and
AbstractGuardrail.targetType(); everything else is inherited plumbing.- Since:
- 0.1 (2026-09-01)
- Author:
- Andrey Santrosyan
-
Field Summary
Fields inherited from class AbstractGuardrail
OBS_GATES_JOB_ID, OBS_GATES_PHASE, OBS_TARGETFields inherited from class AbstractJob
timeout, upstreamRetriesFields inherited from interface Job
DEFAULT_UPSTREAM_RETRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringThe gating rung recorded inAbstractGuardrail.OBS_GATES_PHASE.Methods inherited from class AbstractGuardrail
execute, getGatedSnapshot, getJobType, getRequirements, getResources, getScopeGuard, getTarget, postExecute, preExecute, sealScopeGuard, setGatedSnapshot, setScopeGuard, setTarget, targetType, validateMethods inherited from class AbstractJob
getId, getName, getParentJobId, getPriority, getTimeout, getUpstreamRetries, getUserId, getWorkflowId, randomIdSuffix, setTimeout, setUpstreamRetries, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Guardrail
setGatedSnapshot, setTarget, targetType, validateMethods inherited from interface Identifiable
getParentJobId, getUserId, getWorkflowIdMethods inherited from interface Job
execute, getDisplayName, getId, getJobId, getJobType, getName, getPriority, getRequirements, getTimeout, getUpstreamRetries, postExecute, preExecute
-
Constructor Details
-
AbstractValidationGuardrail
-
-
Method Details
-
gateRungLabel
Description copied from class:AbstractGuardrailThe gating rung recorded inAbstractGuardrail.OBS_GATES_PHASE. Provided by the branch bases; concrete guardrails never touch it.- Specified by:
gateRungLabelin classAbstractGuardrail<T>
-