From cede45d2ddd4d2de7e9d90efc63dd0e20975f764 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 01:20:03 +0100 Subject: [PATCH] public surface: Failed carries outage Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/tests/public_surface.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/mind-body/tests/public_surface.txt b/crates/mind-body/tests/public_surface.txt index 31b973d..fabb09a 100644 --- a/crates/mind-body/tests/public_surface.txt +++ b/crates/mind-body/tests/public_surface.txt @@ -301,7 +301,7 @@ mind_body::projection::narrate: impl std :: fmt :: Display for Failed mind_body::projection::narrate: pub trait Model { fn ask (& self , request_id : & str , model : & str , prompt : & str , schema : Option < & str >) -> std :: result :: Result < Answer , Failed > ; fn converse (& self , request_id : & str , model : & str , turns : & [Turn]) -> std :: result :: Result < Continued , Failed > { let text : Vec < & str > = turns . iter () . map (| turn | match turn { Turn :: User (text) => text . as_str () , Turn :: Assistant { text , .. } => text . as_str () , }) . collect () ; self . ask (request_id , model , & text . join ("\n\n") , None) . map (| answer | Continued { answer , states : Vec :: new () }) } } mind_body::projection::narrate: struct Answer # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[text: String, usage: Option < Spent >] mind_body::projection::narrate: struct Continued # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[answer: Answer, states: Vec < Reasoning >] -mind_body::projection::narrate: struct Failed # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[reason: String, usage: Option < Spent >] +mind_body::projection::narrate: struct Failed # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[reason: String, outage: bool, usage: Option < Spent >] mind_body::projection::narrate: struct KitModel pub-fields[] mind_body::projection::narrate: struct Reasoning # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[provider: String, model: String, state: Vec < u8 >] mind_body::projection::narrate: struct Spent # [derive (Clone , Debug , PartialEq , Eq , Serialize)] pub-fields[model: String, input_tokens: u64, output_tokens: u64, cache_read_tokens: u64, cache_write_tokens: u64, reasoning_tokens: Option < u64 >]