Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Knowledge ¶
type Knowledge struct {
ID types.KnowledgeID `json:"id" firestore:"id"`
Category types.KnowledgeCategory `json:"category" firestore:"category"`
Title string `json:"title" firestore:"title"`
Claim string `json:"claim" firestore:"claim"`
Embedding firestore.Vector32 `json:"-" firestore:"embedding"`
Tags []types.KnowledgeTagID `json:"tags" firestore:"tags"`
Author types.UserID `json:"author" firestore:"author"`
CreatedAt time.Time `json:"created_at" firestore:"created_at"`
UpdatedAt time.Time `json:"updated_at" firestore:"updated_at"`
}
Knowledge represents a topic-based knowledge entry in the Living Fact Store. Each Knowledge holds a collection of facts (or techniques) about a single topic, structured as Markdown in the Claim field.
type KnowledgeLog ¶ added in v0.14.0
type KnowledgeLog struct {
ID types.KnowledgeLogID `json:"id" firestore:"id"`
KnowledgeID types.KnowledgeID `json:"knowledge_id" firestore:"knowledge_id"`
// Snapshot after change
Title string `json:"title" firestore:"title"`
Claim string `json:"claim" firestore:"claim"`
Embedding firestore.Vector32 `json:"-" firestore:"embedding"`
// Change metadata
Author types.UserID `json:"author" firestore:"author"`
TicketID types.TicketID `json:"ticket_id,omitempty" firestore:"ticket_id"`
Message string `json:"message" firestore:"message"`
CreatedAt time.Time `json:"created_at" firestore:"created_at"`
}
KnowledgeLog records a change to a Knowledge entry. Logs persist even after the Knowledge is physically deleted (orphan logs for audit trail).
func (*KnowledgeLog) Validate ¶ added in v0.14.0
func (l *KnowledgeLog) Validate() error
Validate checks if the KnowledgeLog is valid
type KnowledgeTag ¶ added in v0.14.0
type KnowledgeTag struct {
ID types.KnowledgeTagID `json:"id" firestore:"id"`
Name string `json:"name" firestore:"name"`
Description string `json:"description" firestore:"description"`
CreatedAt time.Time `json:"created_at" firestore:"created_at"`
UpdatedAt time.Time `json:"updated_at" firestore:"updated_at"`
}
KnowledgeTag represents a managed tag for knowledge classification. Tags are stored in a separate Firestore collection (knowledge_tags).
func (*KnowledgeTag) Validate ¶ added in v0.14.0
func (t *KnowledgeTag) Validate() error
Validate checks if the KnowledgeTag is valid
Click to show internal directories.
Click to hide internal directories.