CodeFile

gitinsp.domain.models.CodeFile
final case class CodeFile(content: String, language: Language, path: String, chunkSize: Int, chunkOverlap: Int)

Represents a code file with content and metadata

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def createLangchainDocument(): Option[Document]

Creates a Langchain Document from this CodeFile

Creates a Langchain Document from this CodeFile

Attributes

Returns

Some(Document) if the content is non-empty, None otherwise

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product