Class RuntimeEvaluateRequestParams
-
- All Implemented Interfaces:
-
com.hiddenlayer.api.core.Params
public final class RuntimeEvaluateRequestParams implements Params
BETA This endpoint is not GA or Production ready and is subject to changes at any time. Breaking changes may occur.
Analyzes an LLM request payload for security threats before it is sent to the model.
Accepts any valid provider request payload and returns:
If detect or redact action: the request payload (potentially modified) in the provider's request format
If block action: a canned block message in the provider's response format
Use this endpoint inline in your LLM pipeline to evaluate prompts before they reach the model.
Supported provider formats:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRuntimeEvaluateRequestParams.BuilderA builder for RuntimeEvaluateRequestParams.
public final classRuntimeEvaluateRequestParams.BodyA pass-through payload in the native format of the LLM provider. Any valid provider request or response payload is accepted as-is and returned in the same format.
-
Method Summary
Modifier and Type Method Description final Optional<String>hlProjectId()final Optional<String>hlRuntimeSessionId()final RuntimeEvaluateRequestParams.Bodybody()A pass-through payload in the native format of the LLM provider. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final RuntimeEvaluateRequestParams.BuildertoBuilder()final RuntimeEvaluateRequestParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static RuntimeEvaluateRequestParams.Builderbuilder()Returns a mutable builder for constructing an instance of RuntimeEvaluateRequestParams. -
-
Method Detail
-
hlProjectId
final Optional<String> hlProjectId()
-
hlRuntimeSessionId
final Optional<String> hlRuntimeSessionId()
-
body
final RuntimeEvaluateRequestParams.Body body()
A pass-through payload in the native format of the LLM provider. Any valid provider request or response payload is accepted as-is and returned in the same format.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final RuntimeEvaluateRequestParams.Builder toBuilder()
-
_body
final RuntimeEvaluateRequestParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static RuntimeEvaluateRequestParams.Builder builder()
Returns a mutable builder for constructing an instance of RuntimeEvaluateRequestParams.
The following fields are required:
.body()
-
-
-
-