CodeApi class

Constructors

CodeApi([ApiClient? apiClient])

Properties

apiClient → ApiClient
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCodeAsk({String? q, String? repo}) → Future<AskAnswer?>
Answers a question about the caller org's code with a CITED answer: retrieval packs grounding context, then the synthesizer writes the answer over exactly those spans, which come back alongside it.
getCodeAskWithHttpInfo({String? q, String? repo}) → Future<Response>
Answers a question about the caller org's code with a CITED answer: retrieval packs grounding context, then the synthesizer writes the answer over exactly those spans, which come back alongside it.
getCodeFile({String? pathParam, String? repo}) → Future<FileContent?>
Returns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent just found.
getCodeFileWithHttpInfo({String? pathParam, String? repo}) → Future<Response>
Returns the INDEXED content of one file — read_file over the chunks the search tiers hold, for pulling up code an agent just found.
getCodeSearch({String? q, String? type, String? repo, int? limit}) → Future<SearchResults?>
Finds code in the caller org's index across three orthogonal retrieval tiers fused by reciprocal-rank fusion: lexical (FTS5 trigram over code-tokenized text), symbolic (real definition and reference edges), and semantic (embedding cosine over AST-boundary chunks).
getCodeSearchWithHttpInfo({String? q, String? type, String? repo, int? limit}) → Future<Response>
Finds code in the caller org's index across three orthogonal retrieval tiers fused by reciprocal-rank fusion: lexical (FTS5 trigram over code-tokenized text), symbolic (real definition and reference edges), and semantic (embedding cosine over AST-boundary chunks).
getCodeTree({String? repo}) → Future<RepoTree?>
Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index, with no git checkout involved.
getCodeTreeWithHttpInfo({String? repo}) → Future<Response>
Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index, with no git checkout involved.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postCodeAsk(AskPostIn askPostIn) → Future<AskAnswer?>
Is askGet with the question in the request BODY, for a question too long or too awkward to put in a URL.
postCodeAskWithHttpInfo(AskPostIn askPostIn) → Future<Response>
Is askGet with the question in the request BODY, for a question too long or too awkward to put in a URL.
postCodeContext(ContextIn contextIn) → Future<ContextBundle?>
Packs the most relevant code for a query into a token budget — THE primitive for a coding agent that has to decide what to put in a prompt.
postCodeContextWithHttpInfo(ContextIn contextIn) → Future<Response>
Packs the most relevant code for a query into a token budget — THE primitive for a coding agent that has to decide what to put in a prompt.
postCodeIndex(IndexIn indexIn) → Future<IndexResult?>
(re)indexes a repository for the caller's org, incrementally: files whose content hash is unchanged are skipped, so re-sending a whole tree is cheap.
postCodeIndexWithHttpInfo(IndexIn indexIn) → Future<Response>
(re)indexes a repository for the caller's org, incrementally: files whose content hash is unchanged are skipped, so re-sending a whole tree is cheap.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited