Compactの実装

This commit is contained in:
2026-04-13 02:08:25 +09:00
parent 8b120504a7
commit a05eec42d7
14 changed files with 690 additions and 376 deletions
+3
View File
@@ -159,6 +159,9 @@ pub enum Outcome {
Finished,
Paused,
LimitReached,
/// Worker yielded control to the caller for external processing.
/// Distinct from `Paused`: caller handles internally and resumes.
Yielded,
Error { message: String },
}
@@ -119,6 +119,7 @@ async fn run_and_persist(
Ok(llm_worker::WorkerResult::Finished) => Outcome::Finished,
Ok(llm_worker::WorkerResult::Paused) => Outcome::Paused,
Ok(llm_worker::WorkerResult::LimitReached) => Outcome::LimitReached,
Ok(llm_worker::WorkerResult::Yielded) => Outcome::Yielded,
Err(e) => Outcome::Error {
message: e.to_string(),
},