Skip to main content

Crate crabtalk_daemon

Crate crabtalk_daemon 

Source
Expand description

Crabtalk daemon — message central composing runtime, channels, and cron scheduling. Personal agent, local-first.

Re-exports§

pub use config::DaemonConfig;
pub use daemon::setup_socket;
pub use daemon::Daemon;
pub use daemon::DaemonHandle;
pub use daemon::bridge_shutdown;
pub use daemon::event::DaemonEvent;
pub use daemon::event::DaemonEventSender;
pub use daemon::setup_tcp;
pub use hook::DaemonEnv;

Modules§

config
Daemon configuration loaded from TOML.
cron
Daemon-level cron scheduler.
daemon
Daemon — the core struct composing runtime, transports, and lifecycle.
event_bus
Daemon-level event bus — subscription-based routing.
hook
Hook module — re-exports Env as DaemonEnv.
provider
Retrying<P> — a Provider wrapper that adds exponential-backoff retry and per-call timeout on top of any inner provider.

Functions§

build_default_provider
Construct the default Model<DefaultProvider> from a config.

Type Aliases§

BuildProvider
Closure that builds a Model<P> from a DaemonConfig. Stored on Daemon so reload() can call it with the freshly-loaded config. Arc<dyn Fn> so Daemon remains Clone regardless of concrete P.
DefaultProvider
The concrete provider type the default daemon uses: a crabllm ProviderRegistry<RemoteProvider> wrapped in a Retrying layer. The registry implements crabllm_core::Provider via model-name routing; Retrying adds the exponential-backoff loop and per-call timeout that the daemon expects from a production deployment.