pub struct StructuredIngest {
pub episode: EpisodeBuilder,
pub entities: Vec<EntityInput>,
pub relations: Vec<RelationInput>,
pub facts: Vec<FactInput>,
}Expand description
Top-level payload for crate::Lunaris::ingest_structured /
crate::ScopedLunaris::ingest_structured.
episode carries the conversation-turn text (chunked + embedded like
the text-ingest path); the three vectors carry the agent’s structured
knowledge. Any subset may be empty — an episode with only entities,
only relations, or no graph payload at all is valid (the latter
degenerates to a vanilla text ingest with the graph pipeline off).
Fields§
§episode: EpisodeBuilder§entities: Vec<EntityInput>§relations: Vec<RelationInput>§facts: Vec<FactInput>Implementations§
Source§impl StructuredIngest
impl StructuredIngest
Sourcepub fn new(episode: EpisodeBuilder) -> Self
pub fn new(episode: EpisodeBuilder) -> Self
Construct a structured-ingest payload from an episode builder. All
three structured lists start empty — chain .with_entities(...)
etc. to populate.
pub fn with_entities(self, entities: Vec<EntityInput>) -> Self
pub fn with_relations(self, relations: Vec<RelationInput>) -> Self
pub fn with_facts(self, facts: Vec<FactInput>) -> Self
Auto Trait Implementations§
impl Freeze for StructuredIngest
impl RefUnwindSafe for StructuredIngest
impl Send for StructuredIngest
impl Sync for StructuredIngest
impl Unpin for StructuredIngest
impl UnsafeUnpin for StructuredIngest
impl UnwindSafe for StructuredIngest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more