pub struct KnowledgeCard {Show 14 fields
pub module_name: String,
pub module_type: String,
pub summary: String,
pub key_entities: Vec<EntitySummary>,
pub dependencies: Vec<String>,
pub dependents: Vec<String>,
pub design_patterns: Vec<String>,
pub todo_notes: Vec<String>,
pub related_files: Vec<String>,
pub coding_spec: Option<String>,
pub tech_stack: Vec<String>,
pub architecture: Option<String>,
pub pending_manual_edits: Vec<String>,
pub features: Vec<String>,
}Expand description
Knowledge Card(给 AI Agent 的结构化格式)
Fields§
§module_name: String§module_type: String§summary: String§key_entities: Vec<EntitySummary>§dependencies: Vec<String>§dependents: Vec<String>§design_patterns: Vec<String>§todo_notes: Vec<String>关联的源文件路径(由 chunk 直接填充,不经过 LLM)
coding_spec: Option<String>编码规范(LLM 生成的描述性字段)
tech_stack: Vec<String>技术栈(LLM 生成的描述性字段)
architecture: Option<String>架构说明(LLM 生成的描述性字段)
pending_manual_edits: Vec<String>人工修改反向同步记录:被人工编辑的文档路径 + 内容摘要, 下次生成时作为 LLM 输入提示(“有人工修改待同步”)
features: Vec<String>本模块涉及的实体级特征名(演进计划 T3.3:特征追溯, 由生成管道从 graph.features 与模块实体的交集回填,不经过 LLM)
Trait Implementations§
Source§impl Clone for KnowledgeCard
impl Clone for KnowledgeCard
Source§fn clone(&self) -> KnowledgeCard
fn clone(&self) -> KnowledgeCard
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 KnowledgeCard
impl Debug for KnowledgeCard
Source§impl<'de> Deserialize<'de> for KnowledgeCard
impl<'de> Deserialize<'de> for KnowledgeCard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KnowledgeCard
impl RefUnwindSafe for KnowledgeCard
impl Send for KnowledgeCard
impl Sync for KnowledgeCard
impl Unpin for KnowledgeCard
impl UnsafeUnpin for KnowledgeCard
impl UnwindSafe for KnowledgeCard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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