mind-body public surface: Model answers with its usage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-19 23:49:13 +01:00
commit a19ea126ed

View file

@ -205,6 +205,7 @@ mind_body::lease_client: pub enum Lent { Granted (Box < dyn Lease >) , Refused (
mind_body::lease_client: pub trait Lease { fn token (& self) -> & TokenFd ; fn plan_quota (& self) -> & [PlanQuota] ; }
mind_body::lease_client: pub trait Lender { fn lend (& self , request : & LeaseRequest) -> Result < Lent > ; }
mind_body::lease_client: struct Inheritable pub-fields[]
ygg-verify: exit 0
mind_body::lease_client: struct LeaseRefused # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[kind: LeaseRefusalKind, detail: String]
mind_body::lease_client: struct LeaseRequest # [derive (Clone , Debug , PartialEq , Eq , Serialize , Deserialize)] pub-fields[expires_at_unix_ms: u64]
mind_body::lease_client: struct SocketLender pub-fields[]
@ -239,7 +240,7 @@ mind_body::projection: impl PersonaSource for HuginnPersonaSource
mind_body::projection: impl< T : Chat > MouthReader for T
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 narrate :: { KitModel , Model , connector_key } ;
mind_body::projection: pub use narrate :: { Answer , KitModel , Model , Spent , connector_key } ;
mind_body::projection: pub use select :: TurnKind ;
mind_body::projection: pub use tuning :: { TUNING_FILE , TUNING_ROOT } ;
mind_body::projection: struct HuginnPersonaSource pub-fields[]
@ -249,8 +250,10 @@ mind_body::projection::narrate: fn connector_key (credentials : & Path) -> Resul
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: pub trait Model { fn ask (& self , request_id : & str , model : & str , prompt : & str) -> Result < String > ; }
mind_body::projection::narrate: pub trait Model { fn ask (& self , request_id : & str , model : & str , prompt : & str) -> Result < Answer > ; }
mind_body::projection::narrate: struct Answer # [derive (Clone , Debug , PartialEq , Eq)] pub-fields[text: String, usage: Option < Spent >]
mind_body::projection::narrate: struct KitModel pub-fields[]
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::select: # [derive (Clone , Copy , Debug , PartialEq , Eq , Serialize)] # [serde (rename_all = "snake_case")] pub enum TurnKind { Chat , Beat , FollowUp , Reflection , }
mind_body::projection::select: impl Draw
mind_body::projection::select: impl Lens