pub struct StructuredContext {
pub key_decisions: Vec<DecisionItem>,
pub open_questions: Vec<QuestionItem>,
pub key_concepts: Vec<ConceptItem>,
pub technical_specifications: Vec<SpecItem>,
pub conversation_flow: Vec<FlowItem>,
}Expand description
Structured representation of conversation context.
Organizes knowledge extracted from conversations into queryable categories including decisions, questions, concepts, and technical specifications.
Fields§
§key_decisions: Vec<DecisionItem>Key decisions made during the conversation with their rationale.
open_questions: Vec<QuestionItem>Questions that have been asked, with their current status.
key_concepts: Vec<ConceptItem>Important concepts identified and defined during discussion.
technical_specifications: Vec<SpecItem>Technical specifications and requirements discussed.
conversation_flow: Vec<FlowItem>Flow of the conversation tracking major steps and outcomes.
Implementations§
Source§impl StructuredContext
impl StructuredContext
Sourcepub fn new() -> StructuredContext
pub fn new() -> StructuredContext
Creates a new empty StructuredContext.
Sourcepub fn add_flow_item(&mut self, item: FlowItem)
pub fn add_flow_item(&mut self, item: FlowItem)
Adds a flow item, enforcing the maximum limit.
When the limit is reached, the oldest items are removed to make room for new ones.
Sourcepub fn total_items(&self) -> usize
pub fn total_items(&self) -> usize
Returns the total number of items across all categories.
Trait Implementations§
Source§impl Clone for StructuredContext
impl Clone for StructuredContext
Source§fn clone(&self) -> StructuredContext
fn clone(&self) -> StructuredContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructuredContext
impl Debug for StructuredContext
Source§impl Default for StructuredContext
impl Default for StructuredContext
Source§fn default() -> StructuredContext
fn default() -> StructuredContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StructuredContext
impl<'de> Deserialize<'de> for StructuredContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StructuredContext
impl PartialEq for StructuredContext
Source§fn eq(&self, other: &StructuredContext) -> bool
fn eq(&self, other: &StructuredContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredContext
impl Serialize for StructuredContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StructuredContext
Auto Trait Implementations§
impl Freeze for StructuredContext
impl RefUnwindSafe for StructuredContext
impl Send for StructuredContext
impl Sync for StructuredContext
impl Unpin for StructuredContext
impl UnsafeUnpin for StructuredContext
impl UnwindSafe for StructuredContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request