Skip to main content

Crate byob_types

Crate byob_types 

Source
Expand description

Shared serde types used across every byob layer.

Modules§

channel
Channels: ways byob reaches the user outside the app (“shoot me a text”) and the user answers. A channel is provided by a plugin (manifest channels, see docs/plugins-backend.md, Channels); byob’s engine owns everything that decides who may talk to it: pairing codes, the paired peers (by their immutable platform id, never a display name), “My phone” (the one channel and peer “text me” means), and the daily caps.
chart
Charts byob draws itself: ChartSpec v1, the same JSON hob saves as <title>.chart.json, so chart files move between the two apps.
config
Layered settings: built-in defaults → global (settings.json) → workspace → chat.
desktop
Settings of the desktop app itself (not of chats): what closing the window does.
layout
What byob’s interface shows, and in what order: the layout.
process
Starting other programs without a window of their own.
profile
Model profiles: a saved model (endpoint, model id, what it is good at) that the global level, a workspace, a chat or a model role can pick by id.
routine
Routines: saved instructions byob carries out by itself, on a schedule or by hand (“Every morning, search the web for a deal on a new loom”). Each run is a chat; a run that finds something calls report, and the user hears about it.

Structs§

InferenceConfig
Where and how to reach the model. Replaces hob’s local llama.cpp setup.
Message
A single chat message as sent to / received from the inference endpoint.

Enums§

ApiKind
Which wire protocol an endpoint speaks.
Role
Who authored a chat message.

Constants§

CLI_SCHEME
The URL scheme of an agent CLI endpoint: cli://<agent>.

Functions§

cli_agent
The agent id of a cli://<agent> URL ("claude"), or None for any other URL.
endpoint_url_ok
An endpoint URL byob can use: http(s)://… or cli://<agent>.