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

Function DocumentSourceInfoBuildLocalFile

datasets_documents.go:384–390  ·  view source on GitHub ↗

DocumentSourceInfoBuildLocalFile creates document source information for local file type

(content string, fileType string)

Source from the content-addressed store, hash-verified

382
383// DocumentSourceInfoBuildLocalFile creates document source information for local file type
384func DocumentSourceInfoBuildLocalFile(content string, fileType string) *DocumentSourceInfo {
385 encodedContent := base64.StdEncoding.EncodeToString([]byte(content))
386 return &DocumentSourceInfo{
387 FileBase64: &encodedContent,
388 FileType: &fileType,
389 }
390}
391
392// DocumentUpdateRuleBuildNoAuto creates a rule for no automatic updates
393func DocumentUpdateRuleBuildNoAuto() *DocumentUpdateRule {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected