Skip to navigation

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.

pub enum RetainedContent {
    Message {
        message: Message,
        request_index: Option<usize>,
    },
    Content(MessageContent),
    Response(Box<AnnotatedLlmResponse>),
}

Owned backing for lazy traversal after the original annotation is dropped.

Variants

Message

Message

A selected history item (with its original index) or a standalone message.

Fields

message: Message

The selected normalized message.

request_index: Option<usize>

Index in the original request, if selected from history.

Content(MessageContent)

Content(MessageContent)

Standalone content or request instructions.

Response(Box<AnnotatedLlmResponse>)

Response(Box<AnnotatedLlmResponse>)

Normalized response backing the output view.

Implementations

impl RetainedContent

impl RetainedContent

view

pub fn view(&self) -> MessageView<'_>

Borrow the selection with its original root, including for an empty message.

entry

pub fn entry(&self, cursor: ContentCursor) -> Option<ContentEntry<'_>>

Read an entry from a saved cursor position without advancing the caller’s cursor.