Struct PromptIR
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: Uuid, Vec, PromptBlock, Option, ToolSchemaHash, String, DateTime, Utc
Prompt Intermediate Representation - the full decomposed prompt.
A PromptIR is produced by the IR construction phase (Phase 6) from an AnnotatedLlmRequest. It flattens the message hierarchy into an ordered sequence of PromptBlocks, each carrying structural metadata for cache analysis and rewriting.
Fields
ir_id: Uuid
Unique identifier for this IR instance.
blocks: Vec<PromptBlock>
Ordered sequence of prompt blocks.
tool_schema_hashes: Option<Vec<ToolSchemaHash>>
Hashes of tool schemas active at IR creation time.
structured_output_schema_id: Option<String>
Identifier of the structured output schema, if any.
source_request_hash: Option<String>
Optional hash of the source AnnotatedLlmRequest for traceability.
created_at: DateTime<Utc>
When this IR was created.
Trait Implementations
impl Clone for PromptIR
Referenced types: Clone, PromptIR
clone
Referenced types: clone, PromptIR
clone_from
Referenced types: clone_from
impl Debug for PromptIR
Referenced types: Debug, PromptIR
fmt
Referenced types: fmt, Formatter, Result
impl<'de> Deserialize<'de> for PromptIR
Referenced types: Deserialize, PromptIR
deserialize
Referenced types: deserialize, Result, Error, Deserializer
impl PartialEq for PromptIR
Referenced types: PartialEq, PromptIR
eq
Referenced types: eq, PromptIR, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for PromptIR
Referenced types: Serialize, PromptIR
serialize
Referenced types: serialize, Result, Ok, Error, Serializer
impl StructuralPartialEq for PromptIR
Referenced types: StructuralPartialEq, PromptIR