MCPcopy Create free account
hub / github.com/53AI/53AIHub / hasUploadedFilesInContext

Function hasUploadedFilesInContext

api/service/tools/executor.go:686–689  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

684}
685
686func hasUploadedFilesInContext(ctx context.Context) bool {
687 uploadFiles, ok := ctx.Value(UploadedFilesKey).([]*model.UploadFile)
688 return ok && len(uploadFiles) > 0
689}
690
691func isLikelyMissingFileError(output string) bool {
692 lower := strings.ToLower(output)

Callers 1

executeRunShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected