Struct LlmRequest Intercept Outcome
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Referenced types: LlmRequest, Option, AnnotatedLlmRequest, Vec, PendingMarkSpec, LlmOptimizationContribution
Result of an LLM request intercept that can schedule lifecycle marks.
Fields
request: LlmRequest
Rewritten provider request when no request codec is active.
With a request codec, callbacks may rewrite headers, but content is read-only and provider-body changes must be made through Self::annotated_request.
annotated_request: Option<AnnotatedLlmRequest>
Optional normalized request annotation to carry forward.
This is required and authoritative for provider content when a request codec is active. It remains optional when no request codec is active.
pending_marks: Vec<PendingMarkSpec>
Ordered marks to emit after Relay creates and starts the LLM scope.
optimization_contributions: Vec<LlmOptimizationContribution>
Ordered plugin-neutral optimization evidence for this LLM call.
Implementations
impl LlmRequestInterceptOutcome
Referenced types: LlmRequestInterceptOutcome
new
Referenced types: LlmRequest, Option, AnnotatedLlmRequest, LlmRequestInterceptOutcome
Create an outcome without pending marks.
with_pending_mark
Referenced types: PendingMarkSpec, LlmRequestInterceptOutcome
Append one pending mark while preserving interceptor order.
with_optimization_contribution
Referenced types: LlmOptimizationContribution, LlmRequestInterceptOutcome
Append one optimization contribution while preserving interceptor order.
Trait Implementations
impl Clone for LlmRequestInterceptOutcome
Referenced types: Clone, LlmRequestInterceptOutcome
clone
Referenced types: clone, LlmRequestInterceptOutcome
clone_from
Referenced types: clone_from
impl Debug for LlmRequestInterceptOutcome
Referenced types: Debug, LlmRequestInterceptOutcome
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl<'de> Deserialize<'de> for LlmRequestInterceptOutcome
Referenced types: Deserialize, LlmRequestInterceptOutcome
deserialize
Referenced types: deserialize, Result, LlmRequestInterceptOutcome, Deserializer, Error
impl From<(LlmRequest, AnnotatedLlmRequest)> for LlmRequestInterceptOutcome
Referenced types: From, LlmRequest, AnnotatedLlmRequest, LlmRequestInterceptOutcome
from
Referenced types: from, LlmRequest, AnnotatedLlmRequest, LlmRequestInterceptOutcome
impl From<(LlmRequest, Option<AnnotatedLlmRequest>)> for LlmRequestInterceptOutcome
Referenced types: From, LlmRequest, Option, AnnotatedLlmRequest, LlmRequestInterceptOutcome
from
Referenced types: from, LlmRequest, Option, AnnotatedLlmRequest, LlmRequestInterceptOutcome
impl From<LlmRequest> for LlmRequestInterceptOutcome
Referenced types: From, LlmRequest, LlmRequestInterceptOutcome
from
Referenced types: from, LlmRequest, LlmRequestInterceptOutcome
impl PartialEq for LlmRequestInterceptOutcome
Referenced types: PartialEq, LlmRequestInterceptOutcome
eq
Referenced types: eq, LlmRequestInterceptOutcome, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for LlmRequestInterceptOutcome
Referenced types: Serialize, LlmRequestInterceptOutcome
serialize
Referenced types: serialize, Result, Serializer, Ok, Error
impl WireValue<Box<LlmRequestInterceptOutcome>> for LlmRequestInterceptOutcome
Referenced types: Box, LlmRequestInterceptOutcome
to_wire
from_wire
Referenced types: Box, Result, LlmRequestInterceptOutcome
impl WireValue<LlmRequestInterceptOutcome> for LlmRequestInterceptOutcome
Referenced types: LlmRequestInterceptOutcome
to_wire
Referenced types: Result
from_wire
Referenced types: Result, LlmRequestInterceptOutcome
impl StructuralPartialEq for LlmRequestInterceptOutcome
Referenced types: StructuralPartialEq, LlmRequestInterceptOutcome