MCPcopy Create free account
hub / github.com/coze-dev/coze-go / DocumentBaseBuildImage

Function DocumentBaseBuildImage

datasets_documents.go:360–365  ·  view source on GitHub ↗

DocumentBaseBuildImage creates basic document information for image type

(name string, fileID int64)

Source from the content-addressed store, hash-verified

358
359// DocumentBaseBuildImage creates basic document information for image type
360func DocumentBaseBuildImage(name string, fileID int64) *DocumentBase {
361 return &DocumentBase{
362 Name: name,
363 SourceInfo: DocumentSourceInfoBuildImage(fileID),
364 }
365}
366
367// DocumentSourceInfoBuildWebPage creates document source information for webpage type
368func DocumentSourceInfoBuildWebPage(url string) *DocumentSourceInfo {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected