MCPcopy Create free account
hub / github.com/astercloud/aster / DocumentContent

Struct DocumentContent

pkg/types/content.go:87–99  ·  view source on GitHub ↗

DocumentContent 文档内容

Source from the content-addressed store, hash-verified

85
86// DocumentContent 文档内容
87type DocumentContent struct {
88 // Type 文档类型: "url", "base64", "text"
89 Type string `json:"type"`
90
91 // Source 文档源
92 Source string `json:"source"`
93
94 // MimeType MIME 类型,如 "application/pdf", "text/plain"
95 MimeType string `json:"mime_type,omitempty"`
96
97 // Title 文档标题
98 Title string `json:"title,omitempty"`
99}
100
101func (d *DocumentContent) IsContentBlock() {}
102

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected