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

Function DocumentSourceInfoBuildImage

datasets_documents.go:376–381  ·  view source on GitHub ↗

DocumentSourceInfoBuildImage creates document source information for image type

(fileID int64)

Source from the content-addressed store, hash-verified

374
375// DocumentSourceInfoBuildImage creates document source information for image type
376func DocumentSourceInfoBuildImage(fileID int64) *DocumentSourceInfo {
377 return &DocumentSourceInfo{
378 SourceFileID: &fileID,
379 DocumentSource: ptr(5),
380 }
381}
382
383// DocumentSourceInfoBuildLocalFile creates document source information for local file type
384func DocumentSourceInfoBuildLocalFile(content string, fileType string) *DocumentSourceInfo {

Callers 1

DocumentBaseBuildImageFunction · 0.85

Calls 1

ptrFunction · 0.85

Tested by

no test coverage detected