Skip to main content

generate_blocking

Function generate_blocking 

Source
pub async fn generate_blocking(
    client: &dyn LlmClient,
    req: &StructuredRequest,
) -> Result<StructuredResult>
Expand description

Generate a structured JSON object using the given LLM client.

Selects the best mode based on req.mode, calls the LLM, validates against the schema, and retries with repair prompts if validation fails.