1#![deny(missing_docs)]
47
48pub mod client;
49pub mod confidence;
50pub mod decode;
51pub mod detect;
52pub mod engine;
53pub mod error;
54pub mod gate;
55pub mod primitive;
56pub mod reward;
57pub mod route;
58pub mod schema;
59pub mod sequence;
60#[cfg(any(test, feature = "infer"))]
61mod wide_choice;
62
63#[cfg(feature = "router")]
64pub mod router;
65
66#[cfg(feature = "infer")]
67pub mod infer;
68
69#[cfg(feature = "train")]
70pub mod train;
71
72pub const VERSION: &str = env!("CARGO_PKG_VERSION");
74
75pub use client::Client;
76pub use confidence::{confidence_from_probs, temp_bucket, TemperatureTable};
77pub use decode::{answer_from_logits, softmax};
78pub use detect::{analyse, Detection};
79pub use engine::{DecisionEngine, LexicalEngine};
80pub use error::{Error, Result};
81pub use gate::{any_escalate, gate_answer, gate_response, GateAction, GatePolicy};
82pub use primitive::DecisionKind;
83pub use reward::{ece_score, proper_reward, RewardWeights};
84pub use route::{CheckpointId, RouteDecision};
85pub use schema::{
86 criterion_text, instructions_text, Answer, Criteria, Instructions, Question, State,
87 SystemOneRequest, SystemOneResponse, TokenUsage,
88};
89pub use sequence::{
90 pack_question, pack_question_with_state_ids, ByteTokenizer, PackedQuestion, SequenceConfig,
91 SpecialTokens, Tokenize,
92};
93
94#[cfg(feature = "router")]
95pub use router::Router;
96
97#[cfg(feature = "infer")]
98pub use infer::{
99 resolve_device, ActOutput, AgentConfig, CheckpointPaths, CheckpointRegistry, DeviceRequest,
100 ForwardOutput, HfTokenizer, NeuralEngine,
101};
102
103#[cfg(feature = "train")]
104pub use train::{
105 evaluate_finetune_step, mean_batch_reward, FineTuneConfig, FineTuneStepStats, PublishLayout,
106 RewardExample,
107};