DocumentContent 文档内容
| 85 | |
| 86 | // DocumentContent 文档内容 |
| 87 | type 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 | |
| 101 | func (d *DocumentContent) IsContentBlock() {} |
| 102 |
nothing calls this directly
no outgoing calls
no test coverage detected