Skip to main content

read_output_file

Function read_output_file 

Source
pub async fn read_output_file(
    task_id: &str,
    primary_path: &Path,
    repo: &str,
) -> String
Expand description

Read the agent’s output file, trying multiple locations.

Checks per-task attempt directory first, then legacy flat paths. Output is truncated to MAX_OUTPUT_SIZE_BYTES to prevent runaway memory usage.