This reference describes unreleased code on main; no release documents it yet.

rlmesh::adapters::Text

structPreviewuse rlmesh::adapters::Text;[source]

A text input expected by a model.

struct Text

role

field[source]
role: String

Semantic role matched against env text features.

container

field[source]
container: TextContainer

Emit a plain string or a single-element list.

fill

field[source]
fill: Option<String>

Fallback value used when the observation omits the feature; when None the input is omitted from the payload instead. Named to match Actuator.fill.

new

associated function[source]
fn new(role: impl Into<String>) -> Self

Construct a string input with no fallback value.

Trait implementations

  • impl Clone for Text
  • impl Debug for Text
  • impl StructuralPartialEq for Text
  • impl PartialEq for Text
  • impl Serialize for Text
  • impl<'de> Deserialize<'de> for Text
  • impl Eq for Text
  • impl Hash for Text
  • impl Display for Text
  • impl From<Text> for InputNode
  • impl From<Text> for ReadItem