Help us shape the future of Go! Take the 2026 Go Developer Survey

file

package
v0.0.87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path     string                 `json:"path"`
	Name     string                 `json:"name,omitempty"`
	Content  []byte                 `json:"content"`
	MimeType string                 `json:"mime_type"`
	Type     FileType               `json:"type"`
	Metadata map[string]interface{} `json:"metadata,omitempty"`
}

File represents a file to be included in the LLM context

type FileType

type FileType string

FileType represents the type of file

const (
	FileTypeImage    FileType = "image"
	FileTypePDF      FileType = "pdf"
	FileTypeAudio    FileType = "audio"
	FileTypeVideo    FileType = "video"
	FileTypeUnknown  FileType = "unknown"
	FileTypeText     FileType = "txt"
	FileTypeCode     FileType = "code"     // Source code files
	FileTypeConfig   FileType = "config"   // Configuration files
	FileTypeData     FileType = "data"     // Data files (JSON, XML, CSV)
	FileTypeMarkdown FileType = "markdown" // Documentation
	FileTypeBinary   FileType = "binary"   // Generic binary
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL