K24 public surface: Model::converse and its Turn, Reasoning and Continued; the read port (ReadSource, ReadRequest, ReadFailure, LiveReads, ReadFixture); Organs.reads; Fixture::reads; the interpreter's read caps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-20 23:27:48 +01:00
commit 7d43695284

View file

@ -246,11 +246,12 @@ mind_body::projection: mod harness
mind_body::projection: pub trait MouthReader { fn pending (& self) -> Result < ChatPending > ; }
mind_body::projection: pub trait PersonaSource { fn persona (& self) -> Result < (Value , String) > ; }
mind_body::projection: pub use domain :: { DomainFacts , DomainSource , HttpForge , MindDomain } ;
mind_body::projection: pub use narrate :: { Answer , Failed , KitModel , Model , Spent , connector_key } ;
mind_body::projection: pub use narrate :: { Answer , Continued , Failed , KitModel , Model , Reasoning , Spent , Turn , connector_key } ;
mind_body::projection: pub use read :: { LiveReads , ReadFailure , ReadFixture , ReadRequest , ReadSource } ;
mind_body::projection: pub use select :: TurnKind ;
mind_body::projection: pub use tuning :: { TUNING_FILE , TUNING_ROOT } ;
mind_body::projection: struct HuginnPersonaSource pub-fields[]
mind_body::projection: struct Organs< 'a > pub-fields[persona: Option < & 'a dyn PersonaSource >, chat: Option < & 'a dyn MouthReader >, addressing: Option < & 'a dyn HeartbeatView >, model: Option < & 'a dyn Model >, domain: Option < & 'a dyn DomainSource >]
mind_body::projection: struct Organs< 'a > pub-fields[persona: Option < & 'a dyn PersonaSource >, chat: Option < & 'a dyn MouthReader >, addressing: Option < & 'a dyn HeartbeatView >, model: Option < & 'a dyn Model >, domain: Option < & 'a dyn DomainSource >, reads: Option < & 'a dyn ReadSource >]
mind_body::projection: struct Request pub-fields[instance: String, kind: TurnKind, state: Option < Value >, room: Option < String >, seed: u64, renders: Option < usize >, judge_against: Option < Value >, operators: Vec < String >, minds: Vec < String >, own_sender: String, tuning: PathBuf, through: Through, last_heard: Vec < (String , u64) >, recent: Vec < Vec < String > >, own_rooms: Vec < String >, last_outcome: Option < Value >, last_wake: Option < DateTime < Utc > >]
mind_body::projection::domain: impl DomainSource for DomainFacts
mind_body::projection::domain: impl DomainSource for MindDomain
@ -272,6 +273,7 @@ mind_body::projection::harness: impl Fixture: fn addressee (& self) -> Option <
mind_body::projection::harness: impl Fixture: fn domain (& self) -> Option < & dyn DomainSource >
mind_body::projection::harness: impl Fixture: fn load (path : & Path) -> Result < Self >
mind_body::projection::harness: impl Fixture: fn parse (text : & str) -> Result < Self >
mind_body::projection::harness: impl Fixture: fn reads (& self) -> Option < & dyn ReadSource >
mind_body::projection::harness: impl HeartbeatView for Fixture
mind_body::projection::harness: impl Line
mind_body::projection::harness: impl MouthReader for Fixture
@ -282,19 +284,33 @@ mind_body::projection::harness: struct Message # [derive (Clone , Debug , Deseri
mind_body::projection::interpret: impl Drafts
mind_body::projection::interpret: impl GapKind
mind_body::projection::interpret: impl Refusal
mind_body::projection::narrate: # [derive (Clone , Debug , PartialEq , Eq)] pub enum Turn { User (String) , Assistant { text : String , states : Vec < Reasoning > } , }
mind_body::projection::narrate: fn connector_key (credentials : & Path) -> Result < String >
mind_body::projection::narrate: impl Failed
mind_body::projection::narrate: impl KitModel
mind_body::projection::narrate: impl KitModel: fn open (endpoint : SocketAddr , connection_key : String , caller : & str , timeout : Duration) -> Result < Self >
mind_body::projection::narrate: impl Model for KitModel
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 > ; }
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 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 >]
mind_body::projection::outcome: impl Outcome
mind_body::projection::outcome: impl Part
mind_body::projection::read: # [derive (Clone , Copy , Debug , PartialEq , Eq , Serialize , Deserialize)] # [serde (rename_all = "snake_case")] pub enum ReadFailure { NotFound , Private , TooLarge , Failed , }
mind_body::projection::read: # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] # [serde (tag = "kind" , content = "target" , rename_all = "snake_case")] pub enum ReadRequest { Mind (String) , Campaign (String) , Repo (String) , Web (String) , }
mind_body::projection::read: impl LiveReads
mind_body::projection::read: impl LiveReads: fn new (client : HuginnClient , forge : Option < HttpForge >) -> Self
mind_body::projection::read: impl ReadFailure
mind_body::projection::read: impl ReadRequest
mind_body::projection::read: impl ReadSource for LiveReads
mind_body::projection::read: impl ReadSource for ReadFixture
mind_body::projection::read: pub trait ReadSource { fn read (& self , request : & ReadRequest , since : DateTime < Utc >) -> Result < String , ReadFailure > ; }
mind_body::projection::read: struct LiveReads pub-fields[]
mind_body::projection::read: struct ReadFixture # [derive (Clone , Debug , Default , PartialEq , Eq , Deserialize)] pub-fields[]
mind_body::projection::select: # [derive (Clone , Copy , Debug , PartialEq , Eq , Serialize , serde :: Deserialize)] # [serde (rename_all = "snake_case")] pub enum TurnKind { Chat , Beat , FollowUp , Reflection , }
mind_body::projection::select: impl Addressed < '_ >
mind_body::projection::select: impl Context
@ -319,7 +335,7 @@ mind_body::projection::tuning: impl Default for ProjectorTuning
mind_body::projection::tuning: impl Default for SelectTuning
mind_body::projection::tuning: impl Default for Tuning
mind_body::projection::tuning: impl Tuning
mind_body::projection::tuning: struct InterpreterTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, guidance: String]
mind_body::projection::tuning: struct InterpreterTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, guidance: String, reads_per_wake: usize, read_bytes: usize, wake_read_bytes: usize]
mind_body::projection::tuning: struct LensWeights # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[body_and_hour: f64, person_present: f64, unresolved_want: f64, memory_surfacing: f64, wondering: f64]
mind_body::projection::tuning: struct Loaded # [derive (Clone , Debug , PartialEq , Serialize)] pub-fields[tuning: Tuning, source: & 'static str, sha256: String]
mind_body::projection::tuning: struct PersonaTuning # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub-fields[model: String, guidance: String, words: usize]