Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Refactor av data structure

Danielb32d2950ef62
diff --git a/kernel/av/av.go b/kernel/av/av.go
index 932be25785..61be468ff3 100644
--- a/kernel/av/av.go
+++ b/kernel/av/av.go
@@ -82,10 +82,10 @@ type KeySelectOption struct {
}
type Value struct {
- ID string `json:"id"`
- KeyID string `json:"keyID"`
- BlockID string `json:"blockID"`
- Type KeyType `json:"type"`
+ ID string `json:"id,omitempty"`
+ KeyID string `json:"keyID,omitempty"`
+ BlockID string `json:"blockID,omitempty"`
+ Type KeyType `json:"type,omitempty"`
Block *ValueBlock `json:"block,omitempty"`
Text *ValueText `json:"text,omitempty"`