nemo_relay_plugin.codecs
nemo_relay_plugin.codecs
Generated from python/plugin/src/nemo_relay_plugin/codecs.py.
Module nemo_relay_plugin.codecs.
Typed adapters for host-projected normalized content.
Classes
ContentLocation
Read-time normalized location; message_index is set for request selections.
Methods
ContentLocation
Create an instance.
PayloadView
Original tool payload representation, without JSON parsing or rendering.
Methods
PayloadView
Create an instance.
value
Return an independent Python value; JSON strings retain kind json.
ToolCallView
Read-only invocation, preserving item and correlation identifiers.
Methods
ToolCallView
Create an instance.
ToolResultView
Read-only result whose complete payload is excluded from default text.
Methods
ToolResultView
Create an instance.
ContentEntry
Typed content entry sharing immutable snapshot data.
Methods
ContentEntry
Create an instance.
value
Return independent media/native data, or None for text and tools.
MessageView
Independent typed host snapshot; obtain it through an async selection helper.
Methods
MessageView
Create an instance.
from_message
Ask the host to project one normalized message, including tool-result semantics.
from_content
Ask the host to project standalone normalized content or instructions.
parts
Iterate the host-projected typed entries locally, without further RPCs.
text_parts
Iterate authoritative text strings chosen by Rust; no local reclassification occurs.
text
Join host-selected strings, preserving absent versus empty text and whitespace.
Functions
message
Ask the host to select a history item; negative indices count from the end.
last_message
Ask the host to select exactly the final supplied request item, or return None.
instructions_view
Ask the host to select top-level instructions without a history fallback.
output
Ask the host to project the current message and separate response tool calls.
system_prompt
Extract instructions or the first system/developer item through the shared host selection.
last_user_message
Extract the last portable/native user item through the host, without backward text fallback.
response_text
Extract current response text/refusals through Rust, excluding tools and non-text data.
Type Aliases And Constants
ContentFieldContentKindContentRootPayloadKind