Skip to main content

get_code_file

Function get_code_file 

Source
pub async fn get_code_file(
    configuration: &Configuration,
    path: Option<&str>,
    repo: Option<&str>,
) -> Result<FileContent, Error<GetCodeFileError>>
Expand description

Returns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent just found. It is NOT byte-verbatim: the git object plane is the source of record for exact bytes, history and blame. A file absent from the index is a 404, so an agent can tell "not indexed" from "empty file".