Skip to main content

Crate agent

Crate agent 

Source
Expand description

Agent-related UI, apart from the component library: what a chat client draws around the model, not the widgets it composes.

Two pieces. orbs is the model’s working state, animated by its own clock. [avatar] is a face: a silhouette generated from a preset, a name or avatar::Shape::random, painted in the theme’s colors — smooth at any size, or sampled onto an 8×8 grid by mascot for a list row.

agent::avatar(Face::from("Sara").pose(t)).w(px(48.)).h(px(48.))

Re-exports§

pub use avatar::Face;
pub use avatar::Pose;
pub use avatar::avatar;
pub use avatar::mascot;

Modules§

avatar
The blob avatar: one silhouette, two eyes and a little life.
orbs
Thinking orbs — dotted loading indicators for AI & agent UIs, ported from gpui-thinking-orbs (MIT), itself a port of Jakub Antalik’s thinking-orbs.