lib.rsannotatedlib.rssource58 lines · 2.0 KB · raw
1//! The user-interface-free core of Whiskers: one conversation pipeline and
2//! the ports it runs through. See README.md in this directory.
3
4mod address;
5#[cfg(not(target_family = "wasm"))]
6mod atomic;
7mod chat;
8mod conversation;
9mod digest;
10pub mod journey;
11mod limits;
12#[cfg(not(target_family = "wasm"))]
13mod log;
14#[cfg(not(target_family = "wasm"))]
15pub mod logging;
16mod memory;
17mod persona;
18mod ports;
19mod profile;
20mod recall;
21mod reflect;
22mod shared;
23mod types;
24mod visibility;
25pub mod wire;
26
27#[cfg(not(target_family = "wasm"))]
28pub use atomic::set_aside;
29pub use address::{AddressError, DEFAULT_PORT, ServiceAddress};
30pub use chat::{ChatState, ChatTurn, CompressPlan};
31#[cfg(not(target_family = "wasm"))]
32pub use chat::JsonChat;
33pub use conversation::{Config, Conversation, Parts, Reply, Speakable};
34pub use digest::{Digest, Exchange};
35#[cfg(not(target_family = "wasm"))]
36pub use digest::{read_log, read_shared_log};
37pub use limits::{CatTheme, Household, HouseholdConfig, Limits, Quiet, TimeStatus, TokenLimit};
38#[cfg(not(target_family = "wasm"))]
39pub use limits::TimeKeeper;
40#[cfg(not(target_family = "wasm"))]
41pub use log::{DirPictures, JsonlLog};
42pub use memory::MemoryDoc;
43pub use whiskers_icons::IconId;
44#[cfg(not(target_family = "wasm"))]
45pub use memory::JsonMemory;
46pub use persona::{compress_prompt, default_system_prompt, describe_pictures_prompt, greeting, parents_note_prompt, remember_prompt};
47pub use profile::{Age, Audience, Child, ChildName, ProfileError, SharedProfile, lenient_child};
48pub use ports::{
49    ChatError, ChatStore, Clock, EmbedError, Embedder, FailureStage, Guard, GuardError, IconChooser, IconError, Log, LogError, Memory, NoIcons,
50    MemoryError, Model, ModelError, PictureError, Pictures, RankError, Ranker,
51};
52pub use recall::{Recall, cosine};
53pub use reflect::{ReflectInput, Reflected, Reflector, ReflectorConfig};
54pub use shared::{SharedChat, SharedLog, SharedMemory};
55pub use types::{
56    Direction, Entry, Event, Fact, Visibility, Fallback, Heard, Image, Kind, MemorySnapshot, NewFact, Outcome, PictureId, RefusalKind, Speaker,
57    Turn, Verdict,
58};