lib.rsannotatedlib.rssource56 lines · 2.0 KB · raw

The user-interface-free core of Whiskers: one conversation pipeline and the ports it runs through. See README.md in this directory.

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;
24pub mod wire;
26#[cfg(not(target_family = "wasm"))]
27pub use atomic::set_aside;
28pub use address::{AddressError, DEFAULT_PORT, ServiceAddress};
29pub use chat::{ChatState, ChatTurn, CompressPlan};
30#[cfg(not(target_family = "wasm"))]
31pub use chat::JsonChat;
32pub use conversation::{Config, Conversation, Parts, Reply, Speakable};
33pub use digest::{Digest, Exchange};
34#[cfg(not(target_family = "wasm"))]
35pub use digest::{read_log, read_shared_log};
36pub use limits::{CatTheme, Household, HouseholdConfig, Limits, Quiet, TimeStatus, TokenLimit};
37#[cfg(not(target_family = "wasm"))]
38pub use limits::TimeKeeper;
39#[cfg(not(target_family = "wasm"))]
40pub use log::{DirPictures, JsonlLog};
41pub use memory::MemoryDoc;
42#[cfg(not(target_family = "wasm"))]
43pub use memory::JsonMemory;
44pub use persona::{compress_prompt, default_system_prompt, describe_pictures_prompt, greeting, parents_note_prompt, remember_prompt};
45pub use profile::{Age, Audience, Child, ChildName, ProfileError, SharedProfile, lenient_child};
46pub use ports::{
47    ChatError, ChatStore, Clock, EmbedError, Embedder, FailureStage, Guard, GuardError, Log, LogError, Memory,
48    MemoryError, Model, ModelError, PictureError, Pictures, RankError, Ranker,
49};
50pub use recall::{Recall, cosine};
51pub use reflect::{ReflectInput, Reflected, Reflector, ReflectorConfig};
52pub use shared::{SharedChat, SharedLog, SharedMemory};
53pub use types::{
54    Direction, Entry, Event, Fact, Fallback, Heard, Image, Kind, MemorySnapshot, NewFact, Outcome, PictureId, RefusalKind, Speaker,
55    Turn, Verdict,
56};