Skip to main content

get_code_ask

Function get_code_ask 

Source
pub async fn get_code_ask(
    configuration: &Configuration,
    q: Option<&str>,
    repo: Option<&str>,
) -> Result<AskAnswer, Error<GetCodeAskError>>
Expand description

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. It never answers without grounding — with no matched code the answer is empty and says so, and with no synthesizer available the citations still come back with "degraded": true so the caller can reason over the spans itself.